multimodalart HF Staff commited on
Commit
4684a0c
·
1 Parent(s): 99202f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -105,7 +105,7 @@ def process_video(Video, target_language):
105
  os.unlink(audio_file)
106
  os.unlink(transcript_file)
107
 
108
- return output_video
109
 
110
  iface = gr.Interface(
111
  fn=process_video,
@@ -113,7 +113,10 @@ iface = gr.Interface(
113
  gr.Video(),
114
  gr.Dropdown(choices=list(lang_codes.keys()), label="Target Language for Dubbing", value="English"),
115
  ],
116
- outputs=gr.Video(),
 
 
 
117
  live=False,
118
  title="VIDEO TRANSCRIPTION AND TRANSLATION"
119
  )
 
105
  os.unlink(audio_file)
106
  os.unlink(transcript_file)
107
 
108
+ return output_video, None
109
 
110
  iface = gr.Interface(
111
  fn=process_video,
 
113
  gr.Video(),
114
  gr.Dropdown(choices=list(lang_codes.keys()), label="Target Language for Dubbing", value="English"),
115
  ],
116
+ outputs=[
117
+ gr.Video(),
118
+ gr.FileExplorer()
119
+ ]
120
  live=False,
121
  title="VIDEO TRANSCRIPTION AND TRANSLATION"
122
  )