Dani commited on
Commit
25a4665
1 Parent(s): e2f3c1e
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ import os
11
  #
12
  # login(token=token, add_to_git_credential=True)
13
  pipe = pipeline(model="dacavi/whisper-small-es")
14
- language_codes = ["en", "fr", "de", "it"]
15
  def translate_text(text, target_language_code):
16
  translate = boto3.client('translate')
17
 
@@ -47,7 +47,7 @@ def translate_video(video_url,language):
47
  iface = gr.Interface(
48
  fn=translate_video,
49
  inputs=[gr.Textbox(label="Video URL"),
50
- gr.Dropdown(choices=language_codes, label="Select Target Language")
51
  ],
52
  outputs="text",
53
  live=True,
 
11
  #
12
  # login(token=token, add_to_git_credential=True)
13
  pipe = pipeline(model="dacavi/whisper-small-es")
14
+
15
  def translate_text(text, target_language_code):
16
  translate = boto3.client('translate')
17
 
 
47
  iface = gr.Interface(
48
  fn=translate_video,
49
  inputs=[gr.Textbox(label="Video URL"),
50
+ gr.Dropdown(choices=["en", "fr", "de", "it"], label="Select Target Language")
51
  ],
52
  outputs="text",
53
  live=True,