Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def handle_input(storage_location, url1, url2, scrape_interval, content_type):
|
|
96 |
current_task = f"Monitoring URLs: {url1}, {url2}"
|
97 |
history.append(f"Task started: {current_task}")
|
98 |
monitor_urls(storage_location, url1, url2, scrape_interval, content_type)
|
99 |
-
return TASK_PROMPT.format(task=current_task, history="\n".join(history))
|
100 |
|
101 |
# Load custom prompts
|
102 |
try:
|
|
|
96 |
current_task = f"Monitoring URLs: {url1}, {url2}"
|
97 |
history.append(f"Task started: {current_task}")
|
98 |
monitor_urls(storage_location, url1, url2, scrape_interval, content_type)
|
99 |
+
return TASK_PROMPT.format(task=current_task, history="\n".join(map(str, history)))
|
100 |
|
101 |
# Load custom prompts
|
102 |
try:
|