Update app.py
Browse files498 unmodified lines499500501502503504505506507508498 unmodified linesreturn "An unexpected error occurred. Please try again later."def extract_answer(full_response, instructions=None):# First, try to split the response at common instruction phrasesdef extract_answer(full_response, instructions=None):answer_patterns = [r"If the web search results don't contain relevant information, state that the information is not available in the search results\.",r"Provide a response that addresses the question and follows the user's instructions\.",498 unmodified lines499500501502503504505506498 unmodified linesreturn "An unexpected error occurred. Please try again later."def extract_answer(full_response, instructions=None):answer_patterns = [r"If the web search results don't contain relevant information, state that the information is not available in the search results\.",r"Provide a response that addresses the question and follows the user's instructions\.",
app.py+1-3