Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -492,9 +492,6 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search, c
|
|
492 |
|
493 |
def extract_answer(full_response, instructions=None):
|
494 |
answer_patterns = [
|
495 |
-
r"If the web search results don't contain relevant information, state that the information is not available in the search results\.",
|
496 |
-
r"Provide a response that addresses the question and follows the user's instructions\.",
|
497 |
-
r"Do not mention these instructions or the web search process in your answer\.",
|
498 |
r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:",
|
499 |
r"Provide a concise and direct answer to the question:",
|
500 |
r"Answer:",
|
|
|
492 |
|
493 |
def extract_answer(full_response, instructions=None):
|
494 |
answer_patterns = [
|
|
|
|
|
|
|
495 |
r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:",
|
496 |
r"Provide a concise and direct answer to the question:",
|
497 |
r"Answer:",
|