younes21000 commited on
Commit
7177545
1 Parent(s): 884fdf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -28,7 +28,6 @@ def load_translation_model(target_language):
28
  "fa": "fa", # Persian (Farsi)
29
  "es": "es", # Spanish
30
  "fr": "fr", # French
31
- "fi": "fi", # Finnish
32
  "de": "de", # German
33
  "it": "it", # Italian
34
  "pt": "pt", # Portuguese
@@ -236,8 +235,8 @@ iface = gr.Interface(
236
  fn=transcribe_video,
237
  inputs=[
238
  gr.File(label="Upload Video File"),
239
- gr.Dropdown(label="Select Original Video Language", choices=["en", "es", "fr", "de", "it", "fi", "pt"], value="en"),
240
- gr.Dropdown(label="Select Subtitle Translation Language", choices=["en", "fa", "es", "de", "fr", "it", "fi", "pt"], value="fa"),
241
  gr.Dropdown(label="Select Whisper Model", choices=list(whisper_models.keys()), value="Tiny (Fast, Less Accurate)"),
242
  gr.Radio(label="Choose Output Format", choices=["SRT", "Video with Hardsub", "Word", "PDF", "PowerPoint"], value="Video with Hardsub")
243
  ],
 
28
  "fa": "fa", # Persian (Farsi)
29
  "es": "es", # Spanish
30
  "fr": "fr", # French
 
31
  "de": "de", # German
32
  "it": "it", # Italian
33
  "pt": "pt", # Portuguese
 
235
  fn=transcribe_video,
236
  inputs=[
237
  gr.File(label="Upload Video File"),
238
+ gr.Dropdown(label="Select Original Video Language", choices=["en", "es", "fr", "de", "it", "pt"], value="en"),
239
+ gr.Dropdown(label="Select Subtitle Translation Language", choices=["en", "fa", "es", "de", "fr", "it", "pt"], value="fa"),
240
  gr.Dropdown(label="Select Whisper Model", choices=list(whisper_models.keys()), value="Tiny (Fast, Less Accurate)"),
241
  gr.Radio(label="Choose Output Format", choices=["SRT", "Video with Hardsub", "Word", "PDF", "PowerPoint"], value="Video with Hardsub")
242
  ],