Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +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 |
-
|
| 19 |
-
logger.info("Graph-RAG
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
|
|
|
|
| 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, graph_fig = 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, value=graph_fig)
|
| 22 |
|
| 23 |
|
| 24 |
|