ParthCodes commited on
Commit
8e50441
·
verified ·
1 Parent(s): 8f1097c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -191,11 +191,11 @@ def video_to_audio(input_video):
191
  fps = int(cap.get(cv2.CAP_PROP_FPS))
192
  audio = AudioSegment.from_file(input_video)
193
  audio_binary = audio.export(format="wav").read()
194
- audio_bytesio = BytesIO(audio_binary)
195
  audio_bytesio2 = BytesIO(audio_binary)
196
 
197
  flag = False
198
  while flag == False:
 
199
  response = requests.post(AUDIO_API_URL, headers=headers, data=audio_bytesio)
200
  if type(response.json()) == type({}):
201
  print(response.json())
 
191
  fps = int(cap.get(cv2.CAP_PROP_FPS))
192
  audio = AudioSegment.from_file(input_video)
193
  audio_binary = audio.export(format="wav").read()
 
194
  audio_bytesio2 = BytesIO(audio_binary)
195
 
196
  flag = False
197
  while flag == False:
198
+ audio_bytesio = BytesIO(audio_binary)
199
  response = requests.post(AUDIO_API_URL, headers=headers, data=audio_bytesio)
200
  if type(response.json()) == type({}):
201
  print(response.json())