App doesn't work when Google Colab disconnects

Hi I am quite new in Anvil. Recently, I have build a very basic Question Answer and Text Summarization App using Anvil: Q&A and Summarization App

The base logic is written on Colab. When I published the app, after 1-2 hour one of my friend showed one error regarding to one of the function in Colab. I think it is because Colab disconnects when I close the browser(after an hour) Does it mean my app will not work if Colab is diconnected?
Thank you

Hi @abdullahmoosa128 and welcome to the forum.

If your code is hosted on Google Colab and Colab disconnects, then your code will no longer be running. You can solve this issue by hosting the code on a virtual server. I’ve written a tutorial on how to do this using Docker that should hopefully be useful.

1 Like