I am trying to run the tutorial of cat and dog predictor
from ._anvil_designer import Form1Template
from anvil import *
import anvil.server
class Form1(Form1Template):
def file_loader_1_change(self, file, **event_args):
“”“This method is called when a new file is loaded into this FileLoader.”""
result, score = anvil.server.call(‘classify_image’, file)
Firstly, please can you wrap your sample code blocks in triple backticks (```) as it makes it easier to read.
Secondly, as @divyeshlakhotia suggests there is no server function of that name defined. If you have declared the function make sure you have decorated it correctly, for example :