Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
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=[
|
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,
|