Spaces:
Sleeping
Sleeping
removing export
Browse files
app.py
CHANGED
|
@@ -95,29 +95,9 @@ with bot:
|
|
| 95 |
st.session_state.get("error_output", "")
|
| 96 |
)
|
| 97 |
|
| 98 |
-
# 7️⃣ Export section
|
| 99 |
-
st.markdown("---")
|
| 100 |
-
st.subheader("Export")
|
| 101 |
-
export_data = export_session(
|
| 102 |
-
code,
|
| 103 |
-
st.session_state.get("code_output", ""),
|
| 104 |
-
st.session_state.get("error_output", "")
|
| 105 |
-
)
|
| 106 |
-
col1, col2 = st.columns(2)
|
| 107 |
-
with col1:
|
| 108 |
-
st.download_button(
|
| 109 |
-
"📦 JSON",
|
| 110 |
-
data=json.dumps(export_data, indent=2),
|
| 111 |
-
file_name="session.json",
|
| 112 |
-
mime="application/json"
|
| 113 |
-
)
|
| 114 |
-
with col2:
|
| 115 |
-
txt = f"# Code\n{code}\n\n# Output\n{st.session_state.get('code_output','')}\n\n# Errors\n{st.session_state.get('error_output','')}"
|
| 116 |
-
st.download_button("📝 Text", txt, "session.txt", "text/plain")
|
| 117 |
-
|
| 118 |
# 8️⃣ Footer
|
| 119 |
st.markdown(f"""
|
| 120 |
<div style='text-align:center; margin-top:1rem; color:{TEXT}66;'>
|
| 121 |
-
Built with ❤️ & Streamlit
|
| 122 |
</div>
|
| 123 |
""", unsafe_allow_html=True)
|
|
|
|
| 95 |
st.session_state.get("error_output", "")
|
| 96 |
)
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
# 8️⃣ Footer
|
| 99 |
st.markdown(f"""
|
| 100 |
<div style='text-align:center; margin-top:1rem; color:{TEXT}66;'>
|
| 101 |
+
Built with ❤️ & Streamlit by Vaibhav
|
| 102 |
</div>
|
| 103 |
""", unsafe_allow_html=True)
|