Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,8 @@ def main():
|
|
| 31 |
f.write(app_code)
|
| 32 |
|
| 33 |
# Download the generated file
|
| 34 |
-
|
|
|
|
| 35 |
else:
|
| 36 |
st.warning("Please enter a title and content for your Streamlit app.")
|
| 37 |
|
|
|
|
| 31 |
f.write(app_code)
|
| 32 |
|
| 33 |
# Download the generated file
|
| 34 |
+
with open(file_path, "rb") as file:
|
| 35 |
+
btn = st.download_button(label="Download your Streamlit app", data=file, file_name=file_path)
|
| 36 |
else:
|
| 37 |
st.warning("Please enter a title and content for your Streamlit app.")
|
| 38 |
|