jy-raychen commited on
Commit
795857a
·
verified ·
1 Parent(s): f564e37

change to use `input` listener

Browse files

Use `.input` listener, to avoid event triggered by Block.load.
ref: https://www.gradio.app/docs/gradio/textbox

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3559,7 +3559,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
3559
  ai_chatbot_question_3
3560
  ]
3561
 
3562
- youtube_link.change(
3563
  process_youtube_link,
3564
  inputs=process_youtube_link_inputs,
3565
  outputs=process_youtube_link_outputs
 
3559
  ai_chatbot_question_3
3560
  ]
3561
 
3562
+ youtube_link.input(
3563
  process_youtube_link,
3564
  inputs=process_youtube_link_inputs,
3565
  outputs=process_youtube_link_outputs