yashm commited on
Commit
2c4d71e
·
verified ·
1 Parent(s): 22b2c46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,7 +31,8 @@ def main():
31
  f.write(app_code)
32
 
33
  # Download the generated file
34
- st.markdown(f"Download your Streamlit app: [**{file_path}**](/{file_path})")
 
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