AbdulMoid commited on
Commit
2a9e135
·
verified ·
1 Parent(s): a650118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
  with gr.Blocks() as app:
 
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
+ # Placeholder for Graph-RAG (does nothing for now)
19
+ logger.info("Graph-RAG selected, but functionality is not implemented yet.")
20
+ return "Graph-RAG functionality not implemented yet.", [], gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
21
+
22
 
23
 
24
  with gr.Blocks() as app: