fffiloni commited on
Commit
b513376
1 Parent(s): 90e7fa2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -61,18 +61,16 @@ with gr.Blocks(css=css) as demo:
61
  with gr.Column():
62
  pdf_doc = gr.File(label="Load a pdf", file_types=['.pdf'], type="file")
63
  with gr.Row():
64
- langchain_status = gr.Textbox(label="Status")
65
  load_pdf = gr.Button("Load pdf to langchain")
66
 
67
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
68
  with gr.Row():
69
- question = gr.Textbox(label="Question")
70
- clear = gr.Button("Clear")
71
 
72
  load_pdf.click(pdf_changes, pdf_doc, langchain_status, queue=False)
73
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(
74
  bot, chatbot, chatbot
75
  )
76
- clear.click(lambda: None, None, chatbot, queue=False)
77
 
78
  demo.launch()
 
61
  with gr.Column():
62
  pdf_doc = gr.File(label="Load a pdf", file_types=['.pdf'], type="file")
63
  with gr.Row():
64
+ langchain_status = gr.Textbox(placeholder="Status", interactive=False)
65
  load_pdf = gr.Button("Load pdf to langchain")
66
 
67
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
68
  with gr.Row():
69
+ question = gr.Textbox(placeholder="Type your question and hit Enter ")
 
70
 
71
  load_pdf.click(pdf_changes, pdf_doc, langchain_status, queue=False)
72
  question.submit(add_text, [chatbot, question], [chatbot, question]).then(
73
  bot, chatbot, chatbot
74
  )
 
75
 
76
  demo.launch()