blazingbunny commited on
Commit
0ed1771
·
verified ·
1 Parent(s): bfe47e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -56,6 +56,10 @@ if uploaded_file is not None:
56
  # Display results for each URL
57
  st.write(f"URL: {url}, Author: {author}, Published Time: {published_time}, Modified Time: {modified_time}")
58
 
59
- # Display link to download the output text file
60
- st.success("Scraping completed successfully! Click the link below to download the results.")
61
- st.markdown(f"[Download Results](sandbox:/home/user/app/output.txt)")
 
 
 
 
 
56
  # Display results for each URL
57
  st.write(f"URL: {url}, Author: {author}, Published Time: {published_time}, Modified Time: {modified_time}")
58
 
59
+ # Display button to download the output text file
60
+ st.success("Scraping completed successfully! Click the button below to download the results.")
61
+ st.download_button(
62
+ label="Download Results",
63
+ data=output_file_path,
64
+ key="download_button"
65
+ )