There is a way to make my webapp continuously active?

I recently deployed an application made with streamlit and after about 2 weeks, when I went to the link again, it looked like this image:

I had to activate it again, but I would like to know if there is a way to make it active continuously because it will be a site for scientific dissemination. Thanks for any help

No idea if it works, but maybe this?

import streamlit as st 

def yourcode():
    st.write ("Hello World")

def main():
    while blabla == True:

if __name__ == "__main__":