younes21000 commited on
Commit
fb1a46d
1 Parent(s): 5fa395e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -238,8 +238,7 @@ iface = gr.Interface(
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
- gr.Dropdown(label="Select Theme", choices=["default", "compact", "grass", "huggingface", "sketchy", "saturated", "soft", "minimal"], value="compact") # Added theme selection
243
  ],
244
  outputs=gr.File(label="Download File"),
245
  title="Video Subtitle Generator with Translation & Multi-Format Output",
@@ -247,9 +246,9 @@ iface = gr.Interface(
247
  "This tool allows you to generate subtitles from a video file, translate the subtitles into multiple languages using M2M100, "
248
  "and export them in various formats including SRT, hardcoded subtitles in video, Word, PDF, or PowerPoint."
249
  ),
250
- theme="compact", # Default theme
251
  live=False
252
  )
253
 
254
- # Run the interface with theme selection
255
  iface.launch(share=True)
 
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
  ],
243
  outputs=gr.File(label="Download File"),
244
  title="Video Subtitle Generator with Translation & Multi-Format Output",
 
246
  "This tool allows you to generate subtitles from a video file, translate the subtitles into multiple languages using M2M100, "
247
  "and export them in various formats including SRT, hardcoded subtitles in video, Word, PDF, or PowerPoint."
248
  ),
249
+ theme="compact",
250
  live=False
251
  )
252
 
253
+ # Run the interface
254
  iface.launch(share=True)