BoldActionMan commited on
Commit
c554a8a
1 Parent(s): f884833

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -252,16 +252,12 @@ def process_video(video_file, youtube_url, language_choice):
252
 
253
  return final_video_with_subs_path
254
 
255
-
256
- # Define Gradio interface
257
- def gradio_interface(video_file, language_choice):
258
- return process_video(video_file, language_choice)
259
-
260
  language_choices = ts.get_languages("google")["en"]
261
  language_choices.remove("auto")
262
 
263
  gr.Interface(
264
- fn=gradio_interface,
265
  inputs=[
266
  gr.Video(label="Upload a video from your device storage", sources=['upload']),
267
  gr.Textbox(label="OR enter a YouTube video URL"),
 
252
 
253
  return final_video_with_subs_path
254
 
255
+ #Gradio Interface
 
 
 
 
256
  language_choices = ts.get_languages("google")["en"]
257
  language_choices.remove("auto")
258
 
259
  gr.Interface(
260
+ fn=process_video,
261
  inputs=[
262
  gr.Video(label="Upload a video from your device storage", sources=['upload']),
263
  gr.Textbox(label="OR enter a YouTube video URL"),