Spaces:
Runtime error
Runtime error
ParthCodes
commited on
Update app.py
Browse files
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())
|