mobenta commited on
Commit
0d9d03d
·
verified ·
1 Parent(s): 95c5405

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -225,7 +225,7 @@ with gr.Blocks(css="""
225
  # Fetch videos from the channel
226
  channel_videos = get_channel_videos(selected_video_id)
227
  gallery_items = [(video['thumbnail_url'], video['title']) for video in channel_videos]
228
- return gallery_items, gr.update(visible=True)
229
  else:
230
  return f"https://www.youtube.com/watch?v={selected_video_id}", selected_video_type
231
 
@@ -240,7 +240,7 @@ with gr.Blocks(css="""
240
  search_output.select(
241
  on_video_select,
242
  inputs=[video_ids_state, video_types_state],
243
- outputs=[channel_videos_output, channel_videos_output]
244
  )
245
  play_video_button.click(
246
  play_video,
 
225
  # Fetch videos from the channel
226
  channel_videos = get_channel_videos(selected_video_id)
227
  gallery_items = [(video['thumbnail_url'], video['title']) for video in channel_videos]
228
+ return gallery_items, video_ids, video_types
229
  else:
230
  return f"https://www.youtube.com/watch?v={selected_video_id}", selected_video_type
231
 
 
240
  search_output.select(
241
  on_video_select,
242
  inputs=[video_ids_state, video_types_state],
243
+ outputs=[selected_video_link, selected_video_type]
244
  )
245
  play_video_button.click(
246
  play_video,