Update app.py
Browse files492 unmodified lines493494495496497498499500501492 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 = [492 unmodified lines493494495496497498499500501492 unmodified linesdef extract_answer(full_response, instructions=None):try:# Remove the context information more specificallycontext_pattern = r"Context:.*?Question:.*?Entities:.*?}\s*"full_response = re.sub(context_pattern, "", full_response, flags=re.DOTALL | re.IGNORECASE)# List of patterns to removepatterns_to_remove = [
app.py+3-3