ubermenchh commited on
Commit
7f1b3e7
1 Parent(s): b3aac74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -45,14 +45,12 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
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
- summary = gr.Button('Generate Summary')
49
 
50
  with gr.Row():
51
  question = gr.Textbox(label='Question', placeholder='Type your query...')
52
  submit_btn = gr.Button('Submit')
53
 
54
  load_paper.click(paper_changes, inputs=[paper_id], outputs=[langchain_status], queue=False)
55
- summary.click(add_text, [chatbot, 'Give a brief summary of the paper under the title `Summary` and the summarize each section of this paper seperately in detailed points.'], [chatbot, 'Give a brief summary of the paper under the title `Summary` and the summarize each section of this paper seperately in detailed points.']).then(bot, chatbot, chatbot)
56
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(bot, chatbot, chatbot)
57
  submit_btn.click(add_text, [chatbot, question], [chatbot, question]).then(bot, chatbot, chatbot)
58
 
 
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...')
51
  submit_btn = gr.Button('Submit')
52
 
53
  load_paper.click(paper_changes, inputs=[paper_id], outputs=[langchain_status], queue=False)
 
54
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(bot, chatbot, chatbot)
55
  submit_btn.click(add_text, [chatbot, question], [chatbot, question]).then(bot, chatbot, chatbot)
56