Update app.py
Browse files492 unmodified lines493494495496497498492 unmodified linesdef extract_answer(full_response, instructions=None):try:# List of patterns to removepatterns_to_remove = [r"Provide a concise and relevant answer to the question\.",492 unmodified lines493494495496497498499500501502492 unmodified linesdef extract_answer(full_response, instructions=None):try:# Remove the context informationcontext_pattern = r"Context:.*?Entities:.*?}\s*"full_response = re.sub(context_pattern, "", full_response, flags=re.DOTALL)# List of patterns to removepatterns_to_remove = [r"Provide a concise and relevant answer to the question\.",
app.py+4