Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -675,7 +675,7 @@ with st.spinner('Wait for it...'):
|
|
675 |
if len(dictionary['every_prompt_with_val'])!=0:
|
676 |
with st.form("code_form"):
|
677 |
code_new=extract_python_code(dictionary['every_prompt_with_val'][-1][-1])
|
678 |
-
code_new = "".join(code_new)
|
679 |
response = code_editor(code_new, lang="python", key="editor1",height=screen_height/4,allow_reset=True,response_mode="blur",focus=True)
|
680 |
print(response)
|
681 |
submitted = st.form_submit_button("Submit Code")
|
@@ -687,7 +687,7 @@ with st.spinner('Wait for it...'):
|
|
687 |
run_code_blocks(code_new,file_type)
|
688 |
elif len(dictionary['every_prompt_with_val'])!=0 :
|
689 |
code_new=extract_python_code(dictionary['every_prompt_with_val'][-1][-1])
|
690 |
-
code_new = "".join(code_new)
|
691 |
run_code_blocks(code_new,file_type)
|
692 |
else:
|
693 |
st.header("Please ask your query from data")
|
|
|
675 |
if len(dictionary['every_prompt_with_val'])!=0:
|
676 |
with st.form("code_form"):
|
677 |
code_new=extract_python_code(dictionary['every_prompt_with_val'][-1][-1])
|
678 |
+
code_new = "\n".join(code_new)
|
679 |
response = code_editor(code_new, lang="python", key="editor1",height=screen_height/4,allow_reset=True,response_mode="blur",focus=True)
|
680 |
print(response)
|
681 |
submitted = st.form_submit_button("Submit Code")
|
|
|
687 |
run_code_blocks(code_new,file_type)
|
688 |
elif len(dictionary['every_prompt_with_val'])!=0 :
|
689 |
code_new=extract_python_code(dictionary['every_prompt_with_val'][-1][-1])
|
690 |
+
code_new = "\n".join(code_new)
|
691 |
run_code_blocks(code_new,file_type)
|
692 |
else:
|
693 |
st.header("Please ask your query from data")
|