Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,10 +15,10 @@ def qa_tool(user_question, method):
|
|
| 15 |
logger.info(f"Regular RAG images: {images}") # Additional log for debugging
|
| 16 |
return answer, images, ask_another_visible, change_patient_visible, gr.update(visible=False)
|
| 17 |
elif method == "Graph-RAG":
|
| 18 |
-
answer, images, ask_another_visible, change_patient_visible
|
| 19 |
logger.info("Graph-RAG answer generated")
|
| 20 |
logger.info(f"Graph-RAG images: {images}") # Additional log for debugging
|
| 21 |
-
return answer, images, ask_another_visible, change_patient_visible, gr.update(visible=True
|
| 22 |
|
| 23 |
|
| 24 |
|
|
|
|
| 15 |
logger.info(f"Regular RAG images: {images}") # Additional log for debugging
|
| 16 |
return answer, images, ask_another_visible, change_patient_visible, gr.update(visible=False)
|
| 17 |
elif method == "Graph-RAG":
|
| 18 |
+
answer, images, ask_another_visible, change_patient_visible = qa_tool_graph_rag(user_question)
|
| 19 |
logger.info("Graph-RAG answer generated")
|
| 20 |
logger.info(f"Graph-RAG images: {images}") # Additional log for debugging
|
| 21 |
+
return answer, images, ask_another_visible, change_patient_visible, gr.update(visible=True)
|
| 22 |
|
| 23 |
|
| 24 |
|