Spaces:
Paused
Paused
Shreyas094
commited on
Update app.py
Browse files
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=
|
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)
|