AbdulMoid commited on
Commit
9e16f37
·
verified ·
1 Parent(s): bb4c26d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, 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
 
 
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