Update app.py
Browse files
app.py
CHANGED
@@ -64,13 +64,13 @@ editor_buttons = [{
|
|
64 |
"style": {"bottom": "0.44rem","right": "0.4rem"}
|
65 |
}]
|
66 |
code_prompt = lang_map[lang][2]
|
67 |
-
response_dict = code_editor(code_prompt, lang=
|
68 |
|
69 |
if response_dict['type'] == 'submit':
|
70 |
code = response_dict['text']
|
71 |
my_bar = st.progress(0, text=f"Code Execution is Processing...")
|
72 |
with st.spinner('Ok, give me a sec...'):
|
73 |
-
response = post_task(
|
74 |
task_id = response['task_id']
|
75 |
st.write(f"Task ID: {task_id}")
|
76 |
|
|
|
64 |
"style": {"bottom": "0.44rem","right": "0.4rem"}
|
65 |
}]
|
66 |
code_prompt = lang_map[lang][2]
|
67 |
+
response_dict = code_editor(code_prompt, lang=editor_language, height=[15,15], options={"wrap": False}, buttons=editor_buttons)
|
68 |
|
69 |
if response_dict['type'] == 'submit':
|
70 |
code = response_dict['text']
|
71 |
my_bar = st.progress(0, text=f"Code Execution is Processing...")
|
72 |
with st.spinner('Ok, give me a sec...'):
|
73 |
+
response = post_task(monolith_language, code, libraries, timeout, profiling)
|
74 |
task_id = response['task_id']
|
75 |
st.write(f"Task ID: {task_id}")
|
76 |
|