Spaces:
Running
on
Zero
Running
on
Zero
give 5 second for web earch to gather reults
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def chat_response(user_msg, chat_history, system_prompt,
|
|
149 |
|
150 |
# wait up to 1s for snippets, then replace debug with them
|
151 |
if enable_search:
|
152 |
-
thread_search.join(timeout=
|
153 |
if search_results:
|
154 |
debug = "### Search results merged into prompt\n\n" + "\n".join(
|
155 |
f"- {r}" for r in search_results
|
|
|
149 |
|
150 |
# wait up to 1s for snippets, then replace debug with them
|
151 |
if enable_search:
|
152 |
+
thread_search.join(timeout=5.0)
|
153 |
if search_results:
|
154 |
debug = "### Search results merged into prompt\n\n" + "\n".join(
|
155 |
f"- {r}" for r in search_results
|