Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
import os
|
2 |
import time
|
3 |
import hashlib
|
4 |
import logging
|
@@ -19,6 +18,7 @@ from transformers import pipeline
|
|
19 |
import feedparser
|
20 |
from bs4 import BeautifulSoup
|
21 |
import threading
|
|
|
22 |
|
23 |
# Configure logging
|
24 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
@@ -129,7 +129,7 @@ def create_interface():
|
|
129 |
stop_scraping_flag = [False]
|
130 |
start_button.click(start_scraping, inputs=[storage_location, urls, scrape_interval, content_type, stop_scraping_flag], outputs=csv_output)
|
131 |
stop_button.click(stop_scraping, inputs=[stop_scraping_flag], outputs=[csv_output])
|
132 |
-
message.submit(chat_interface, inputs=[message, chat_history, system_message, max_tokens, temperature, top_p
|
133 |
|
134 |
# Add a button to display the CSV content for a selected URL
|
135 |
with gr.Row():
|
|
|
|
|
1 |
import time
|
2 |
import hashlib
|
3 |
import logging
|
|
|
18 |
import feedparser
|
19 |
from bs4 import BeautifulSoup
|
20 |
import threading
|
21 |
+
import os
|
22 |
|
23 |
# Configure logging
|
24 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
|
|
129 |
stop_scraping_flag = [False]
|
130 |
start_button.click(start_scraping, inputs=[storage_location, urls, scrape_interval, content_type, stop_scraping_flag], outputs=csv_output)
|
131 |
stop_button.click(stop_scraping, inputs=[stop_scraping_flag], outputs=[csv_output])
|
132 |
+
message.submit(chat_interface, inputs=[message, chat_history, system_message, max_tokens, temperature, top_p], outputs=[chat_history, response_box])
|
133 |
|
134 |
# Add a button to display the CSV content for a selected URL
|
135 |
with gr.Row():
|