eienmojiki commited on
Commit
f71e027
1 Parent(s): 59bdc9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def convert_video_to_gif(
64
  clip = clip.set_fps(fps)
65
 
66
  # Create a temporary file
67
- with tempfile.NamedTemporaryFile(suffix=".gif") as temp_file:
68
  # Write the GIF to the temporary file
69
  clip.write_gif(temp_file.name)
70
 
 
64
  clip = clip.set_fps(fps)
65
 
66
  # Create a temporary file
67
+ with tempfile.NamedTemporaryFile(suffix=".gif", delete=False) as temp_file:
68
  # Write the GIF to the temporary file
69
  clip.write_gif(temp_file.name)
70