wangfuyun commited on
Commit
3c9da29
1 Parent(s): 42f6bbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,6 +6,7 @@ import os
6
  from glob import glob
7
  from pathlib import Path
8
  from typing import Optional
 
9
 
10
  from PIL import Image
11
  from diffusers.utils import load_image, export_to_video
@@ -85,7 +86,7 @@ def sample(
85
 
86
  os.makedirs(output_folder, exist_ok=True)
87
  base_count = len(glob(os.path.join(output_folder, "*.mp4")))
88
- video_path = os.path.join(output_folder, f"{base_count:06d}.mp4")
89
 
90
  with torch.autocast("cuda"):
91
  frames = pipe(
 
6
  from glob import glob
7
  from pathlib import Path
8
  from typing import Optional
9
+ import time
10
 
11
  from PIL import Image
12
  from diffusers.utils import load_image, export_to_video
 
86
 
87
  os.makedirs(output_folder, exist_ok=True)
88
  base_count = len(glob(os.path.join(output_folder, "*.mp4")))
89
+ video_path = os.path.join(output_folder, f"{base_count:06d}-{int(time.time())}.mp4")
90
 
91
  with torch.autocast("cuda"):
92
  frames = pipe(