jchen8000 commited on
Commit
e503691
·
verified ·
1 Parent(s): 3c08d48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -159,19 +159,20 @@ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
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)
 
159
 
160
  with gr.Tab("Chatbot"):
161
  with gr.Row():
162
+ with gr.Column(scale=2)
163
+ gr.ChatInterface(
164
+ fn=generate_response,
165
+ chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
166
+ examples=examples_questions,
167
+ additional_inputs=additional_inputs,
168
+ cache_examples=False,
169
+ )
170
+ with gr.Column(scale=2)
171
+ relevant_info = gr.Textbox(
172
+ label="Retrieved Information",
173
+ interactive=False,
174
+ lines=20,
175
+ )
176
 
177
  # Launch the Gradio app
178
  demo.launch(share=True)