Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,11 @@ def monitor_urls(storage_location, urls, scrape_interval, content_type, stop_scr
|
|
64 |
logging.error(f"Error starting ChromeDriver: {e}")
|
65 |
|
66 |
# Define a function to start scraping
|
67 |
-
|
|
|
|
|
|
|
|
|
68 |
global CURRENT_TASK, HISTORY
|
69 |
|
70 |
CURRENT_TASK = f"Monitoring URLs: {', '.join(urls)}"
|
|
|
64 |
logging.error(f"Error starting ChromeDriver: {e}")
|
65 |
|
66 |
# Define a function to start scraping
|
67 |
+
start_button.click(
|
68 |
+
start_scraping,
|
69 |
+
inputs=[storage_location, urls, scrape_interval, content_type, stop_scraping_flag],
|
70 |
+
outputs=csv_output
|
71 |
+
)
|
72 |
global CURRENT_TASK, HISTORY
|
73 |
|
74 |
CURRENT_TASK = f"Monitoring URLs: {', '.join(urls)}"
|