Update BrainBot.py
Browse files9 unmodified lines1011121314151617181920212223242526279 unmodified lines
st.markdown(f'<style>{css}</style>', unsafe_allow_html=True)
## SERVER SETUP## -------------------------------------------------------------------------------------------def start_server(): os.system("uvicorn main:app --host 0.0.0.0 --port 7860") st.session_state['server_started'] = True if 'server_started' not in st.session_state: st.session_state['server_started'] = False
if not st.session_state['server_started']: start_server()
## FUNCTIONS## -------------------------------------------------------------------------------------------# Function to save the uploaded file as a temporary file and return its path.BrainBot.py+12