FriendlyUser commited on
Commit
f5d0648
·
1 Parent(s): 3d8816a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -142,11 +142,12 @@ def get_text_from_mp3_whisper(inputType:str, mp3_file: str, url_path: str, taskN
142
  print(e)
143
  output_file = "temp.mp4"
144
  # return temp.mp4
145
- with open(output_file, "rb") as f:
146
- output_bytes = f.read()
147
 
148
  # get output_video as mp4
149
- return result.get("segments"), words , output_bytes
 
 
150
 
151
  gr.Interface(
152
  title = 'Download Video From url and extract text from audio',
 
142
  print(e)
143
  output_file = "temp.mp4"
144
  # return temp.mp4
145
+
 
146
 
147
  # get output_video as mp4
148
+ with open(output_file, "rb") as f:
149
+ return result.get("segments"), words , f
150
+ return result.get("segments"), words, "temp.mp4"
151
 
152
  gr.Interface(
153
  title = 'Download Video From url and extract text from audio',