Spaces:
Runtime error
Runtime error
Update app.py
Browse files93 unmodified lines949596979798991008 unmodified lines10911011111211311411593 unmodified lines code_output = sys.stdout.getvalue() combined_content += f"```\n{code_output}\n```\n\n" realtimeEvalResponse = "# Code Results 🚀\n" + "```" + code_output + "```\n\n" st.write(realtimeEvalResponse) # st.write(realtimeEvalResponse) except Exception as e: combined_content += f"```python\nError executing Python code: {e}\n```\n\n"8 unmodified lines if 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 file with open(f"{base_filename}.md", 'rb') as file:app.py+2-1