Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Commit
•
857c0ab
1
Parent(s):
2936fbe
Update agent.py
Browse files
agent.py
CHANGED
@@ -181,10 +181,10 @@ def create_interface():
|
|
181 |
chat_history = gr.Chatbot(label="Chat History")
|
182 |
response_box = gr.Textbox(label="Response")
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
|
189 |
# Add a button to display the CSV content for a selected URL
|
190 |
with gr.Row():
|
|
|
181 |
chat_history = gr.Chatbot(label="Chat History")
|
182 |
response_box = gr.Textbox(label="Response")
|
183 |
|
184 |
+
# Function to stop scraping
|
185 |
+
def stop_scraping(stop_scraping_flag):
|
186 |
+
stop_scraping_flag[0] = True
|
187 |
+
return "Scraping stopped."
|
188 |
|
189 |
# Add a button to display the CSV content for a selected URL
|
190 |
with gr.Row():
|