Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -137,6 +137,9 @@ def create_file(filename, prompt, response, should_save=True):
|
|
137 |
exec(cleaned_code)
|
138 |
code_output = sys.stdout.getvalue()
|
139 |
combined_content += f"```\n{code_output}\n```\n\n"
|
|
|
|
|
|
|
140 |
except Exception as e:
|
141 |
combined_content += f"```python\nError executing Python code: {e}\n```\n\n"
|
142 |
|
|
|
137 |
exec(cleaned_code)
|
138 |
code_output = sys.stdout.getvalue()
|
139 |
combined_content += f"```\n{code_output}\n```\n\n"
|
140 |
+
realtimeEvalResponse = "# Code Results 🚀\n" + "```" + code_output + "```\n\n"
|
141 |
+
st.write(realtimeEvalResponse)
|
142 |
+
|
143 |
except Exception as e:
|
144 |
combined_content += f"```python\nError executing Python code: {e}\n```\n\n"
|
145 |
|