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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,7 @@ from transformers import pipeline
3
  import cv2
4
  from PIL import Image
5
  import io
 
6
 
7
  #Commit
8
  def video_to_descriptions(video, target_language="en"):
@@ -65,6 +66,7 @@ language_dropdown = gr.Dropdown(
65
  )
66
 
67
  iface = gr.Interface(
 
68
  fn=video_to_descriptions,
69
  inputs=[gr.Video(label="Import a Video", info="The Video to be described"), language_dropdown],
70
  #outputs="audio",
 
3
  import cv2
4
  from PIL import Image
5
  import io
6
+ import os
7
 
8
  #Commit
9
  def video_to_descriptions(video, target_language="en"):
 
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",