acecalisto3 commited on
Commit
b5ac60b
·
verified ·
1 Parent(s): e1a7efc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -10,9 +10,7 @@ import uuid
10
  import logging
11
  from typing import Optional, Dict, List, Any
12
  from pathlib import Path
13
-
14
- # Import shot-scraper
15
- from shot_scraper import ShotScraper # Ensure that the shot-scraper package is installed
16
 
17
  # Set up logging
18
  logging.basicConfig(level=logging.INFO)
@@ -306,18 +304,22 @@ def show_download_links(subdir: str) -> None:
306
  def main() -> None:
307
  """Main application function."""
308
  st.sidebar.title("Infinite Dataset Hub")
309
-
310
- # Additional UI elements and logic for your Streamlit app
311
- # ...
312
-
313
  st.sidebar.subheader("Available URLs")
 
 
 
 
314
  for name, url in URLS.items():
315
  if st.sidebar.button(name):
316
- st.write(f"Downloading from {url}")
317
  download_html_and_files(url, name.replace(" ", "_"))
318
 
 
 
 
319
  # Initialize history
320
  initialize_history()
321
 
322
  if __name__ == "__main__":
323
- main()
 
 
10
  import logging
11
  from typing import Optional, Dict, List, Any
12
  from pathlib import Path
13
+ from shot_scraper import ShotScraper # Importing shot-scraper
 
 
14
 
15
  # Set up logging
16
  logging.basicConfig(level=logging.INFO)
 
304
  def main() -> None:
305
  """Main application function."""
306
  st.sidebar.title("Infinite Dataset Hub")
 
 
 
 
307
  st.sidebar.subheader("Available URLs")
308
+
309
+ # Debugging statement
310
+ st.write("Debugging: main function started")
311
+
312
  for name, url in URLS.items():
313
  if st.sidebar.button(name):
314
+ st.write(f"Downloading content from {url}")
315
  download_html_and_files(url, name.replace(" ", "_"))
316
 
317
+ # Debugging statement
318
+ st.write("Debugging: main function completed")
319
+
320
  # Initialize history
321
  initialize_history()
322
 
323
  if __name__ == "__main__":
324
+ main()
325
+ st.write("Debugging: App launched successfully.")