Spaces:
Runtime error
Runtime error
Update src/app.py
Browse files- src/app.py +1 -2
src/app.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
import streamlit as st
|
| 3 |
import pickle
|
| 4 |
from pathlib import Path
|
| 5 |
-
from IPython.display import SVG
|
| 6 |
|
| 7 |
# Load saved model
|
| 8 |
model_path = Path("src/svg_model.pkl")
|
|
@@ -19,7 +18,7 @@ if st.button("Generate SVG"):
|
|
| 19 |
# Display SVG in Streamlit
|
| 20 |
st.components.v1.html(svg_code, height=250, scrolling=True)
|
| 21 |
|
| 22 |
-
# Optionally,
|
| 23 |
st.download_button(
|
| 24 |
label="Download SVG",
|
| 25 |
data=svg_code,
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import pickle
|
| 4 |
from pathlib import Path
|
|
|
|
| 5 |
|
| 6 |
# Load saved model
|
| 7 |
model_path = Path("src/svg_model.pkl")
|
|
|
|
| 18 |
# Display SVG in Streamlit
|
| 19 |
st.components.v1.html(svg_code, height=250, scrolling=True)
|
| 20 |
|
| 21 |
+
# Optionally, allow downloading the SVG
|
| 22 |
st.download_button(
|
| 23 |
label="Download SVG",
|
| 24 |
data=svg_code,
|