ccm commited on
Commit
e14a8ae
·
verified ·
1 Parent(s): 859070a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +12 -7
main.py CHANGED
@@ -171,18 +171,23 @@ gradio.ChatInterface(
171
  reply,
172
  examples=EXAMPLE_QUERIES,
173
  chatbot=gradio.Chatbot(
174
- show_label=False,
175
- show_share_button=False,
176
- show_copy_button=False,
177
  value=[[None, GREETING]],
178
  avatar_images=[
179
- "https://www.cmu.edu/student-success/images/staff-portraits/cmu-scotty-head-scarf-white.png",
180
- "https://media.thetab.com/blogs.dir/90/files/2021/06/screenshot-2021-06-10-at-110730-1024x537.png"
181
- ],
182
- height="80vh",
183
  bubble_full_width=False,
184
  ),
185
  retry_btn=None,
186
  undo_btn=None,
187
  clear_btn=None,
 
 
 
 
188
  ).launch(debug=True)
 
 
171
  reply,
172
  examples=EXAMPLE_QUERIES,
173
  chatbot=gradio.Chatbot(
174
+ show_label=False,
175
+ show_share_button=False,
176
+ show_copy_button=False,
177
  value=[[None, GREETING]],
178
  avatar_images=[
179
+ "https://www.cmu.edu/student-success/images/staff-portraits/cmu-scotty-head-scarf-white.png",
180
+ "https://media.thetab.com/blogs.dir/90/files/2021/06/screenshot-2021-06-10-at-110730-1024x537.png",
181
+ ],
182
+ height="80vh",
183
  bubble_full_width=False,
184
  ),
185
  retry_btn=None,
186
  undo_btn=None,
187
  clear_btn=None,
188
+ additional_inputs_accordion_name = "Settings",
189
+ additional_inputs=[
190
+ gradio.Slider(1, 10, value=5, step=1, label="Number of results")
191
+ ]
192
  ).launch(debug=True)
193
+