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():
    blabla=True
    while blabla == True:
        yourcode()

if __name__ == "__main__":
    main()