What I’m trying to do: i was trying a image classifier using colab and anvil. But not getting any output .I have attached anvil client module and colab server module screenshots below.
What I’ve tried and what’s not work: What should i do now to get the predictions. Please help
Code Sample:
# code snippet
Clone link:https://anvil.works/build#clone:7HSHTFCCLRRQ2YRL=AUZ3NHY6P2E326443AHWROEE
share a copy of your app
Have you tried removing the extra line between the @anvil.server.callable
decorator and the ‘classify_image’ function definition?
p.s. Welcome to the Anvil Forum!
Yes I tried. But still not working
1 Like
You might benefit from working through this tutorial first: Turning a Google Colab notebook into a web app
Are you getting any error messages in your Anvil output? (If you share the colab itself, that would allow others to test.)
One thing I’m seeing is that you don’t actually have the ‘file_loader_1_change’ function set up to run on the file loader’s ‘change’ event. ‘file_loader_1_change’ needs to be in the box circled below:

Thanks for the reply. As i renamed that function. I started getting a new error.
ValueError: Failed to find data adapter that can handle input: <class ‘anvil._serialise.StreamingMedia’>, <class ‘NoneType’> at /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/data_adapter.py, line 994 called from /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/data_adapter.py, line 1152 called from /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/data_adapter.py, line 1364 called from /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training.py, line 1706 called from , line 14 called from [Form1, line 59](javascript:void(0))