tsereno commited on
Commit
9b3281c
1 Parent(s): 1f81fba

Update app.py

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