aminaj commited on
Commit
46d2250
·
verified ·
1 Parent(s): 337438e

Update BrainBot.py

Browse files
Files changed (1) hide show
  1. BrainBot.py +7 -7
BrainBot.py CHANGED
@@ -12,15 +12,15 @@ st.markdown(f'<style>{css}</style>', unsafe_allow_html=True)
12
 
13
  ## SERVER SETUP
14
  ## -------------------------------------------------------------------------------------------
15
- def start_server():
16
- os.system("uvicorn main:app --port 7860 --host 0.0.0.0 --workers 2")
17
- st.session_state['server_started'] = True
18
 
19
- if 'server_started' not in st.session_state:
20
- st.session_state['server_started'] = False
21
 
22
- if not st.session_state['server_started']:
23
- start_server()
24
 
25
  ## FUNCTIONS
26
  ## -------------------------------------------------------------------------------------------
 
12
 
13
  ## SERVER SETUP
14
  ## -------------------------------------------------------------------------------------------
15
+ # def start_server():
16
+ # os.system("uvicorn main:app --port 7860 --host 0.0.0.0 --workers 2")
17
+ # st.session_state['server_started'] = True
18
 
19
+ # if 'server_started' not in st.session_state:
20
+ # st.session_state['server_started'] = False
21
 
22
+ # if not st.session_state['server_started']:
23
+ # start_server()
24
 
25
  ## FUNCTIONS
26
  ## -------------------------------------------------------------------------------------------