diff --git a/requirements.txt b/requirements.txt index 9dc0043e0435..3377a1b0dff8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -43,3 +43,4 @@ semantic-kernel==0.2.9.dev0 python-dotenv==1.0.0 ffmpeg==1.4 -e git+https://github.com/xtekky/gpt4free.git@6598265e2bf46ce1054736cd64db9ff42a358331#egg=gpt4free +streamlit-autorefresh==0.0.1 diff --git a/streamlit/Main.py b/streamlit/Main.py index db2968edb272..afd3ea482748 100644 --- a/streamlit/Main.py +++ b/streamlit/Main.py @@ -1,9 +1,12 @@ -# Main.py import streamlit as st from components.verify_backend import verify_backend from components.docs import agixt_docs +from streamlit_autorefresh import st_autorefresh + + +# Run the autorefresh about (5 seconds) and stop running in the corner after the 2nd time +count = st_autorefresh(interval=5000, limit=2) -verify_backend() try: with open("./.streamlit/config.toml") as f: @@ -37,3 +40,7 @@ """, unsafe_allow_html=True, ) + + +if not verify_backend(): + verify_backend()