Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def create_file(filename, prompt, response, should_save=True):
|
|
94 |
code_output = sys.stdout.getvalue()
|
95 |
combined_content += f"```\n{code_output}\n```\n\n"
|
96 |
realtimeEvalResponse = "# Code Results 🚀\n" + "```" + code_output + "```\n\n"
|
97 |
-
st.write(realtimeEvalResponse)
|
98 |
|
99 |
except Exception as e:
|
100 |
combined_content += f"```python\nError executing Python code: {e}\n```\n\n"
|
@@ -109,6 +109,7 @@ def create_file(filename, prompt, response, should_save=True):
|
|
109 |
if should_save:
|
110 |
with open(f"{base_filename}.md", 'w') as file:
|
111 |
file.write(combined_content)
|
|
|
112 |
|
113 |
# Create a Base64 encoded link for the file
|
114 |
with open(f"{base_filename}.md", 'rb') as file:
|
|
|
94 |
code_output = sys.stdout.getvalue()
|
95 |
combined_content += f"```\n{code_output}\n```\n\n"
|
96 |
realtimeEvalResponse = "# Code Results 🚀\n" + "```" + code_output + "```\n\n"
|
97 |
+
# st.write(realtimeEvalResponse)
|
98 |
|
99 |
except Exception as e:
|
100 |
combined_content += f"```python\nError executing Python code: {e}\n```\n\n"
|
|
|
109 |
if should_save:
|
110 |
with open(f"{base_filename}.md", 'w') as file:
|
111 |
file.write(combined_content)
|
112 |
+
st.write(combined_content)
|
113 |
|
114 |
# Create a Base64 encoded link for the file
|
115 |
with open(f"{base_filename}.md", 'rb') as file:
|