Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -499,10 +499,8 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search, c
|
|
499 |
|
500 |
return "An unexpected error occurred. Please try again later."
|
501 |
|
|
|
502 |
def extract_answer(full_response, instructions=None):
|
503 |
-
# First, try to split the response at common instruction phrases
|
504 |
-
|
505 |
-
def extract_answer(full_response, instructions=None):
|
506 |
answer_patterns = [
|
507 |
r"If the web search results don't contain relevant information, state that the information is not available in the search results\.",
|
508 |
r"Provide a response that addresses the question and follows the user's instructions\.",
|
|
|
499 |
|
500 |
return "An unexpected error occurred. Please try again later."
|
501 |
|
502 |
+
|
503 |
def extract_answer(full_response, instructions=None):
|
|
|
|
|
|
|
504 |
answer_patterns = [
|
505 |
r"If the web search results don't contain relevant information, state that the information is not available in the search results\.",
|
506 |
r"Provide a response that addresses the question and follows the user's instructions\.",
|