Gainward777 commited on
Commit
07d1a40
·
verified ·
1 Parent(s): e511f4f

Update ui/gradio_ui.py

Browse files
Files changed (1) hide show
  1. ui/gradio_ui.py +2 -2
ui/gradio_ui.py CHANGED
@@ -14,7 +14,7 @@ def ui():
14
  with gr.Column(scale = 86):
15
  gr.Markdown("""<b>Important: The demo only works with pdf. It must be initialized by creating database.</b>""")
16
  with gr.Row():
17
- document = gr.Files(height=300, file_count="multiple", file_types=["pdf"], interactive=True, label="<center><h1>Ask your Manuscript</h1><center>")#Upload PDF documents")
18
  with gr.Row():
19
  with gr.Accordion("Advanced settings", open=False):
20
  with gr.Row():
@@ -33,7 +33,7 @@ def ui():
33
  with gr.Column(scale = 200):
34
  chatbot = gr.Chatbot(height=505)
35
  with gr.Row():
36
- msg = gr.Textbox(placeholder="Ask a question", container=True)
37
  with gr.Row():
38
  submit_btn = gr.Button("Submit")
39
  clear_btn = gr.ClearButton([msg, chatbot], value="Clear")
 
14
  with gr.Column(scale = 86):
15
  gr.Markdown("""<b>Important: The demo only works with pdf. It must be initialized by creating database.</b>""")
16
  with gr.Row():
17
+ document = gr.Files(height=300, file_count="multiple", file_types=["pdf"], interactive=True, label="Upload PDF documents")
18
  with gr.Row():
19
  with gr.Accordion("Advanced settings", open=False):
20
  with gr.Row():
 
33
  with gr.Column(scale = 200):
34
  chatbot = gr.Chatbot(height=505)
35
  with gr.Row():
36
+ msg = gr.Textbox(placeholder="Ask a question", container=True), examples=[["what's anarchy ? "]],)
37
  with gr.Row():
38
  submit_btn = gr.Button("Submit")
39
  clear_btn = gr.ClearButton([msg, chatbot], value="Clear")