FarhanAK128 commited on
Commit
84dbe6c
·
verified ·
1 Parent(s): 14eccb0

Update frontend.py

Browse files
Files changed (1) hide show
  1. 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 = os.path.join(os.getcwd(), "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)
 
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)