tsereno commited on
Commit
1f81fba
1 Parent(s): caee6b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -43,6 +43,7 @@ def user(text_prompt: str, chatbot: List[Tuple[str, str]]):
43
 
44
 
45
  def bot(
 
46
  google_key: str,
47
  model_name: str,
48
  image_prompt: Optional[Image.Image],
@@ -175,7 +176,7 @@ top_p_component = gr.Slider(
175
  "the next token (using temperature). "
176
  ))
177
 
178
- user_inputs = [
179
  text_prompt_component,
180
  chatbot_component
181
  ]
@@ -215,7 +216,7 @@ with gr.Blocks() as demo:
215
  run_button_component.click(
216
  fn=user,
217
  inputs=user_inputs,
218
- outputs=[text_prompt_component, chatbot_component],
219
  queue=False
220
  ).then(
221
  fn=bot, inputs=bot_inputs, outputs=[chatbot_component]
@@ -224,7 +225,7 @@ with gr.Blocks() as demo:
224
  text_prompt_component.submit(
225
  fn=user,
226
  inputs=user_inputs,
227
- outputs=[text_prompt_component, chatbot_component],
228
  queue=False
229
  ).then(
230
  fn=bot, inputs=bot_inputs, outputs=[chatbot_component]
 
43
 
44
 
45
  def bot(
46
+ video,
47
  google_key: str,
48
  model_name: str,
49
  image_prompt: Optional[Image.Image],
 
176
  "the next token (using temperature). "
177
  ))
178
 
179
+ user_inputs = ["video",
180
  text_prompt_component,
181
  chatbot_component
182
  ]
 
216
  run_button_component.click(
217
  fn=user,
218
  inputs=user_inputs,
219
+ outputs=[text_prompt_component, chatbot_component, "video"],
220
  queue=False
221
  ).then(
222
  fn=bot, inputs=bot_inputs, outputs=[chatbot_component]
 
225
  text_prompt_component.submit(
226
  fn=user,
227
  inputs=user_inputs,
228
+ outputs=[text_prompt_component, chatbot_component, "video"],
229
  queue=False
230
  ).then(
231
  fn=bot, inputs=bot_inputs, outputs=[chatbot_component]