kevinhug commited on
Commit
7c6363e
·
1 Parent(s): 5e4395c
Files changed (2) hide show
  1. app.py +1 -1
  2. graphrag.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ https://kevinwkc.github.io/davinci/
67
  """)
68
  in_verbatim = gr.Textbox(label="Context")
69
  in_question = gr.Textbox(label="Question")
70
- out_product = gr.Textbox(label="Answer")
71
 
72
  gr.Examples(
73
  [
 
67
  """)
68
  in_verbatim = gr.Textbox(label="Context")
69
  in_question = gr.Textbox(label="Question")
70
+ out_product = gr.Markdown(label="Answer")
71
 
72
  gr.Examples(
73
  [
graphrag.py CHANGED
@@ -81,7 +81,7 @@ def reasoning(text, question):
81
 
82
  print("Answering through GraphQAChain...")
83
  answer = graph_rag.invoke(question)
84
- return answer
85
 
86
  except Exception as e:
87
  print(f"An error occurred in process_text: {str(e)}")
 
81
 
82
  print("Answering through GraphQAChain...")
83
  answer = graph_rag.invoke(question)
84
+ return answer['result']
85
 
86
  except Exception as e:
87
  print(f"An error occurred in process_text: {str(e)}")