Spaces:
Sleeping
Sleeping
Update frontend.py
Browse files- frontend.py +1 -1
frontend.py
CHANGED
|
@@ -163,7 +163,7 @@ if options and selected_video:
|
|
| 163 |
with st.spinner('🔄 Loading and processing video...'):
|
| 164 |
gif_frames = load_video_for_gif(file_path)
|
| 165 |
alignment = load_alignments(file_path.replace('.mpg','.align'))
|
| 166 |
-
temp_dir =
|
| 167 |
os.makedirs(temp_dir, exist_ok=True)
|
| 168 |
gif_filename = os.path.join(temp_dir, f"animation_{uuid.uuid4().hex}.gif")
|
| 169 |
imageio.mimsave(gif_filename, gif_frames, fps=15, loop=0)
|
|
|
|
| 163 |
with st.spinner('🔄 Loading and processing video...'):
|
| 164 |
gif_frames = load_video_for_gif(file_path)
|
| 165 |
alignment = load_alignments(file_path.replace('.mpg','.align'))
|
| 166 |
+
temp_dir = "tmp"
|
| 167 |
os.makedirs(temp_dir, exist_ok=True)
|
| 168 |
gif_filename = os.path.join(temp_dir, f"animation_{uuid.uuid4().hex}.gif")
|
| 169 |
imageio.mimsave(gif_filename, gif_frames, fps=15, loop=0)
|