flocolombari commited on
Commit
6e075d9
1 Parent(s): 7ba3497

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -64,11 +64,17 @@ def video_to_descriptions(video, target_language="en"):
64
  language_dropdown = gr.Dropdown(
65
  ["en", "fr", "de", "es"], label="Language", info="The Language of the output"
66
  )
 
 
 
 
 
67
 
 
 
68
  iface = gr.Interface(
69
- examples=[["./meduses.mp4", "Méduses"], ["./paysage.mp4", "Paysage"]],
70
  fn=video_to_descriptions,
71
- inputs=[gr.Video(label="Import a Video", info="The Video to be described"), language_dropdown],
72
  #outputs="audio",
73
  outputs="text",
74
  live=False
 
64
  language_dropdown = gr.Dropdown(
65
  ["en", "fr", "de", "es"], label="Language", info="The Language of the output"
66
  )
67
+ example_videos = [
68
+ "./meduses.mp4",
69
+ "./paysage.mp4",
70
+ # Add more example video file paths as needed
71
+ ]
72
 
73
+ # Create a dropdown menu with example video options
74
+ example_video_dropdown = gr.Dropdown(example_videos, label="Exemples de vidéos")
75
  iface = gr.Interface(
 
76
  fn=video_to_descriptions,
77
+ inputs=[example_video_dropdown, language_dropdown],
78
  #outputs="audio",
79
  outputs="text",
80
  live=False