Update app.py
Browse files
app.py
CHANGED
@@ -69,11 +69,6 @@ editor_buttons = [{
|
|
69 |
code_prompt = lang_map[lang][2]
|
70 |
response_dict = code_editor(code_prompt, lang=editor_language, height=[15,15], options={"wrap": False}, buttons=editor_buttons)
|
71 |
|
72 |
-
# Status
|
73 |
-
monolith_status = get_status()
|
74 |
-
worker_status = ''.join(['π’' if worker_status else 'π‘' for worker_status in monolith_status['worker_status']])
|
75 |
-
st.write(f"{worker_status}")
|
76 |
-
|
77 |
if response_dict['type'] == 'submit':
|
78 |
code = response_dict['text']
|
79 |
my_bar = st.progress(0, text=f"Code Execution is Processing...")
|
@@ -104,4 +99,9 @@ if response_dict['type'] == 'submit':
|
|
104 |
st.write(f"**Elapsed Time:** :blue[{response['output_dict']['time_v']['elapsed_time_seconds']}], **System Time:** :blue[{response['output_dict']['time_v']['system_time']}], **User Time:** :blue[{response['output_dict']['time_v']['user_time']}], **Peak Memory:** :blue[{response['output_dict']['time_v']['max_resident_set_kb']}] kb")
|
105 |
|
106 |
else:
|
107 |
-
st.error(response)
|
|
|
|
|
|
|
|
|
|
|
|
69 |
code_prompt = lang_map[lang][2]
|
70 |
response_dict = code_editor(code_prompt, lang=editor_language, height=[15,15], options={"wrap": False}, buttons=editor_buttons)
|
71 |
|
|
|
|
|
|
|
|
|
|
|
72 |
if response_dict['type'] == 'submit':
|
73 |
code = response_dict['text']
|
74 |
my_bar = st.progress(0, text=f"Code Execution is Processing...")
|
|
|
99 |
st.write(f"**Elapsed Time:** :blue[{response['output_dict']['time_v']['elapsed_time_seconds']}], **System Time:** :blue[{response['output_dict']['time_v']['system_time']}], **User Time:** :blue[{response['output_dict']['time_v']['user_time']}], **Peak Memory:** :blue[{response['output_dict']['time_v']['max_resident_set_kb']}] kb")
|
100 |
|
101 |
else:
|
102 |
+
st.error(response)
|
103 |
+
|
104 |
+
# Status
|
105 |
+
monolith_status = get_status()
|
106 |
+
worker_status = ''.join(['π’' if worker_status else 'π‘' for worker_status in monolith_status['worker_status']])
|
107 |
+
st.write(f"{worker_status}")
|