lalashechka commited on
Commit
c9c13e6
1 Parent(s): 0678b8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -160,7 +160,8 @@ def create_video(prompt, model):
160
  temp_file_path = temp.name
161
 
162
  clip = mp.VideoFileClip(temp_file_path)
163
- temp_file2 = tempfile.NamedTemporaryFile(delete=False)
 
164
  clip.write_videofile(temp_file2.name)
165
  return temp_file2.name
166
 
 
160
  temp_file_path = temp.name
161
 
162
  clip = mp.VideoFileClip(temp_file_path)
163
+ n_im2 = f"{time.time()}"
164
+ temp_file2 = tempfile.NamedTemporaryFile(prefix=f'aaafff{n_im2}', suffix='.mp4', delete=False)
165
  clip.write_videofile(temp_file2.name)
166
  return temp_file2.name
167