Karthikeyan commited on
Commit
8fce35a
1 Parent(s): 705f0e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,12 +69,11 @@ with gr.Blocks(css=css,theme=gr.themes.Soft()) as demo:
69
  repo_id = gr.Dropdown(label="LLM", choices=["google/flan-ul2", "OpenAssistant/oasst-sft-1-pythia-12b", "bigscience/bloomz"], value="google/flan-ul2")
70
  with gr.Row():
71
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=False)
72
- load_pdf = gr.Button("Load pdf to langchain")
73
 
74
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
75
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
76
  submit_btn = gr.Button("Send message")
77
- #load_pdf.click(loading_pdf, None, langchain_status, queue=False)
78
  repo_id.change(pdf_changes, inputs=[pdf_doc, repo_id], outputs=[langchain_status], queue=False)
79
  load_pdf.click(pdf_changes, inputs=[pdf_doc, repo_id], outputs=[langchain_status], queue=False)
80
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(
 
69
  repo_id = gr.Dropdown(label="LLM", choices=["google/flan-ul2", "OpenAssistant/oasst-sft-1-pythia-12b", "bigscience/bloomz"], value="google/flan-ul2")
70
  with gr.Row():
71
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=False)
72
+ load_pdf = gr.Button("Load to langchain")
73
 
74
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
75
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
76
  submit_btn = gr.Button("Send message")
 
77
  repo_id.change(pdf_changes, inputs=[pdf_doc, repo_id], outputs=[langchain_status], queue=False)
78
  load_pdf.click(pdf_changes, inputs=[pdf_doc, repo_id], outputs=[langchain_status], queue=False)
79
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(