Hello, I just wanted to first say this is my first time using Anvil. I am having trouble trying to display a result of a function in my colab notebook on a label in anvil. The uplink was enabled successfully, but everytime I run the web app, the result goes to my notebook. This is the code in Anvil:
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
def enter_click(self, **event_args):
"""This method is called when the button is clicked"""
music_rec = anvil.server.call('musicrec2', self.emotion_input.text)
self.label_2.text = music_rec
And this is what I have in Colab:
And the web app looks like this:
Whenever I press enter, nothing will show up on Anvil, and instead, the result will show up in Colab like this:
The output that’s showing up in Colab is what I’m trying to display on the web app on label_2.