Spaces:
Runtime error
Runtime error
Update app.py
Browse files93 unmodified lines9495969798991008 unmodified lines10911011111211311493 unmodified linescode_output = sys.stdout.getvalue()combined_content += f"```\n{code_output}\n```\n\n"realtimeEvalResponse = "# Code Results 🚀\n" + "```" + code_output + "```\n\n"st.write(realtimeEvalResponse)except Exception as e:combined_content += f"```python\nError executing Python code: {e}\n```\n\n"8 unmodified linesif should_save:with open(f"{base_filename}.md", 'w') as file:file.write(combined_content)# Create a Base64 encoded link for the filewith open(f"{base_filename}.md", 'rb') as file:93 unmodified lines9495969798991008 unmodified lines10911011111211311411593 unmodified linescode_output = sys.stdout.getvalue()combined_content += f"```\n{code_output}\n```\n\n"realtimeEvalResponse = "# Code Results 🚀\n" + "```" + code_output + "```\n\n"# st.write(realtimeEvalResponse)except Exception as e:combined_content += f"```python\nError executing Python code: {e}\n```\n\n"8 unmodified linesif should_save:with open(f"{base_filename}.md", 'w') as file:file.write(combined_content)st.write(combined_content)# Create a Base64 encoded link for the filewith open(f"{base_filename}.md", 'rb') as file:
app.py+2-1