Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -321,7 +321,7 @@ def generate_video():
|
|
| 321 |
user_voice = '/home/user/app/images/Recording.m4a'
|
| 322 |
|
| 323 |
with tempfile.NamedTemporaryFile(suffix=".wav", prefix="user_voice_",dir=TEMP_DIR.name, delete=False) as temp_file:
|
| 324 |
-
with open(
|
| 325 |
file_contents = source_file.read()
|
| 326 |
temp_file.write(file_contents)
|
| 327 |
|
|
|
|
| 321 |
user_voice = '/home/user/app/images/Recording.m4a'
|
| 322 |
|
| 323 |
with tempfile.NamedTemporaryFile(suffix=".wav", prefix="user_voice_",dir=TEMP_DIR.name, delete=False) as temp_file:
|
| 324 |
+
with open(user_voice, 'rb') as source_file:
|
| 325 |
file_contents = source_file.read()
|
| 326 |
temp_file.write(file_contents)
|
| 327 |
|