Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -317,7 +317,8 @@ def generate_video():
|
|
317 |
print('Audio file saved using whisper')
|
318 |
|
319 |
elif voice_cloning == 'yes':
|
320 |
-
user_voice = request.files['user_voice']
|
|
|
321 |
|
322 |
with tempfile.NamedTemporaryFile(suffix=".wav", prefix="user_voice_",dir=TEMP_DIR.name, delete=False) as temp_file:
|
323 |
user_voice_path = temp_file.name
|
|
|
317 |
print('Audio file saved using whisper')
|
318 |
|
319 |
elif voice_cloning == 'yes':
|
320 |
+
# user_voice = request.files['user_voice']
|
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 |
user_voice_path = temp_file.name
|