Luigi commited on
Commit
c00d442
·
1 Parent(s): 8c3c2b9

give 5 second for web earch to gather reults

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=1.0)
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