jchen8000 commited on
Commit
d9c7c28
·
verified ·
1 Parent(s): c57049b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -7
app.py CHANGED
@@ -158,13 +158,20 @@ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
158
  load_sample.click(load_sample_pdf, inputs=None, outputs=index_output)
159
 
160
  with gr.Tab("Chatbot"):
161
- gr.ChatInterface(
162
- fn=generate_response,
163
- chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
164
- examples=examples_questions,
165
- additional_inputs=additional_inputs,
166
- cache_examples=False,
167
- )
 
 
 
 
 
 
 
168
 
169
  # Launch the Gradio app
170
  demo.launch(share=True)
 
158
  load_sample.click(load_sample_pdf, inputs=None, outputs=index_output)
159
 
160
  with gr.Tab("Chatbot"):
161
+ with gr.Row():
162
+ gr.ChatInterface(
163
+ fn=generate_response,
164
+ chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
165
+ examples=examples_questions,
166
+ additional_inputs=additional_inputs,
167
+ cache_examples=False,
168
+ , scale=2) # scale=2 means it takes 2 parts out of 3 (2/3)
169
+
170
+ relevant_info = gr.Textbox(
171
+ label="Retrieved Information",
172
+ interactive=False,
173
+ lines=20
174
+ , scale=1) # scale=1 means it takes 1 part out of 3 (1/3)
175
 
176
  # Launch the Gradio app
177
  demo.launch(share=True)