Update BrainBot.py
Browse files9 unmodified lines1011121314159 unmodified linesst.markdown(f'<style>{css}</style>', unsafe_allow_html=True)## FUNCTIONS## -------------------------------------------------------------------------------------------# Function to save the uploaded file as a temporary file and return its path.9 unmodified lines1011121314151617181920212223242526279 unmodified linesst.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'] = Trueif 'server_started' not in st.session_state:st.session_state['server_started'] = Falseif 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