ubermenchh commited on
Commit
1ff0039
1 Parent(s): 795a929

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def bot(history):
35
 
36
  def infer(question):
37
  response = query_engine.query(question)
38
- return response
39
 
40
  with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
41
  with gr.Column():
@@ -44,7 +44,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
44
  with gr.Row():
45
  paper_id = gr.Textbox(label='ArXiv Paper Id', placeholder='1706.03762')
46
  langchain_status = gr.Textbox(label='Status', placeholder='', interactive=False)
47
- load_paper = gr.Button('Load Paper to LangChain')
48
 
49
  with gr.Row():
50
  question = gr.Textbox(label='Question', placeholder='Type your query...')
 
35
 
36
  def infer(question):
37
  response = query_engine.query(question)
38
+ return str(response)
39
 
40
  with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
41
  with gr.Column():
 
44
  with gr.Row():
45
  paper_id = gr.Textbox(label='ArXiv Paper Id', placeholder='1706.03762')
46
  langchain_status = gr.Textbox(label='Status', placeholder='', interactive=False)
47
+ load_paper = gr.Button('Load Paper to LLaMa-Index')
48
 
49
  with gr.Row():
50
  question = gr.Textbox(label='Question', placeholder='Type your query...')