JeCabrera commited on
Commit
4d65cdf
·
verified ·
1 Parent(s): 896b703

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -181,13 +181,13 @@ with gr.Blocks() as demo:
181
  top_p_component.render()
182
 
183
  run_button_component.click(
184
- fn=user,
185
- inputs=user_inputs,
186
- outputs=[text_prompt_component, chatbot_component],
187
- queue=False
188
- ).then(
189
- fn=bot, inputs=bot_inputs, outputs=[chatbot_component],
190
- )
191
 
192
  text_prompt_component.submit(
193
  fn=user,
 
181
  top_p_component.render()
182
 
183
  run_button_component.click(
184
+ fn=user,
185
+ inputs=user_inputs,
186
+ outputs=[text_prompt_component, chatbot_component],
187
+ queue=False
188
+ ).then(
189
+ fn=bot, inputs=[upload_button_component, temperature_component, max_output_tokens_component, stop_sequences_component, top_k_component, top_p_component, chatbot_component], outputs=[chatbot_component],
190
+ )
191
 
192
  text_prompt_component.submit(
193
  fn=user,