Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import os
|
|
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,7 +85,7 @@ def sample(
|
|
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}
|
90 |
|
91 |
with torch.autocast("cuda"):
|
92 |
frames = pipe(
|
|
|
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 |
|
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(
|