Shreyas094 commited on
Commit
952e963
·
verified ·
1 Parent(s): 615a9b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -425,7 +425,7 @@ After writing the document, please provide a list of sources used in your respon
425
  if not full_response:
426
  yield "I apologize, but I couldn't generate a response at this time. Please try again later."
427
 
428
- def get_response_with_search(query, model, num_calls=3, temperature=0.2, region=None, language=None, time=None):
429
  search_results = duckduckgo_search(query)
430
  context = "\n".join(f"{result['title']}\n{result['body']}\nSource: {result['href']}\n"
431
  for result in search_results if 'body' in result)
 
425
  if not full_response:
426
  yield "I apologize, but I couldn't generate a response at this time. Please try again later."
427
 
428
+ def get_response_with_search(query, model, num_calls=3, temperature=0.2, region=region, language=language, time=time):
429
  search_results = duckduckgo_search(query)
430
  context = "\n".join(f"{result['title']}\n{result['body']}\nSource: {result['href']}\n"
431
  for result in search_results if 'body' in result)