Spanicin commited on
Commit
2138a37
·
verified ·
1 Parent(s): 70f18e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(user_voice_path, 'rb') as source_file:
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