Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,6 +86,7 @@ def create_file(filename, prompt, response, should_save=True):
|
|
86 |
|
87 |
# Execute the cleaned Python code within the context
|
88 |
try:
|
|
|
89 |
exec(cleaned_code, context)
|
90 |
code_output = sys.stdout.getvalue()
|
91 |
combined_content += f"```\n{code_output}\n```\n\n"
|
|
|
86 |
|
87 |
# Execute the cleaned Python code within the context
|
88 |
try:
|
89 |
+
st.write('Executing code: ', cleaned_code)
|
90 |
exec(cleaned_code, context)
|
91 |
code_output = sys.stdout.getvalue()
|
92 |
combined_content += f"```\n{code_output}\n```\n\n"
|