I have built an object detection system on Google Colab where I’m uploading images and getting an image with detected items.
I’m getting the following error
Error: anvil.server.UplinkDisconnectedError: The uplink server for “anvilup” has been disconnected at [Form1, line 15](javascript:void(0))
Google Colab: https://colab.research.google.com/drive/1tnM9WFBs_F9BeK3XwtQ4bHnC14qbzfYx?usp=sharing
Anvil App Code:
###appcode
from ._anvil_designer import Form1Template
from anvil import *
import anvil.server
class Form1(Form1Template):
def __init__(self, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)
# Any code you write here will run when the form opens.
def file_loader_1_change(self, file, **event_args):
"""This method is called when a new file is loaded into this FileLoader"""
anvil.server.call("anvilup",file)
self.image_1.source=file
###appcode