osanseviero
commited on
Commit
·
a215b3e
1
Parent(s):
04bd21c
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,9 @@ def inference(input_text):
|
|
19 |
res = requests.get(correct_request)
|
20 |
st.markdown(f'## Output')
|
21 |
st.write(json.loads(res.text))
|
|
|
|
|
|
|
22 |
|
23 |
if not st.session_state['server_started']:
|
24 |
start_server()
|
|
|
19 |
res = requests.get(correct_request)
|
20 |
st.markdown(f'## Output')
|
21 |
st.write(json.loads(res.text))
|
22 |
+
|
23 |
+
if 'server_started' not in st.session_state:
|
24 |
+
st.session_state['server_started'] = False
|
25 |
|
26 |
if not st.session_state['server_started']:
|
27 |
start_server()
|