Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ def process_query(user_query):
|
|
| 102 |
gemini_resp = gemini_response(preprocessed_query, full_pdf_content)
|
| 103 |
final_response = generate_final_response(user_query, rag_response, gemini_resp)
|
| 104 |
|
| 105 |
-
return rag_response, gemini_resp,
|
| 106 |
except Exception as e:
|
| 107 |
error_message = f"An error occurred: {str(e)}"
|
| 108 |
return error_message, error_message, error_message
|
|
|
|
| 102 |
gemini_resp = gemini_response(preprocessed_query, full_pdf_content)
|
| 103 |
final_response = generate_final_response(user_query, rag_response, gemini_resp)
|
| 104 |
|
| 105 |
+
return rag_response, gemini_resp, final_response
|
| 106 |
except Exception as e:
|
| 107 |
error_message = f"An error occurred: {str(e)}"
|
| 108 |
return error_message, error_message, error_message
|