Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ feature_extractor = CLIPFeatureExtractor.from_pretrained("openai/clip-vit-base-p
|
|
42 |
|
43 |
# Function
|
44 |
@spaces.GPU(duration=15,enable_queue=True)
|
45 |
-
def generate_image(prompt, base, motion, step, progress=gr.Progress()):
|
46 |
global step_loaded
|
47 |
global base_loaded
|
48 |
global motion_loaded
|
@@ -165,9 +165,9 @@ with gr.Blocks(css="style.css") as demo:
|
|
165 |
{"Focus: Cars in Street (Season: Rain, Daytime) (Shot from Distance) (Movement: Cars running)"} #Mixture
|
166 |
],
|
167 |
fn=generate_image,
|
168 |
-
inputs=[prompt
|
169 |
outputs=video,
|
170 |
-
cache_examples=
|
171 |
)
|
172 |
|
173 |
gr.Markdown(MORE)
|
|
|
42 |
|
43 |
# Function
|
44 |
@spaces.GPU(duration=15,enable_queue=True)
|
45 |
+
def generate_image(prompt, base="emilianJR/epiCRealism", motion="guoyww/animatediff-motion-lora-zoom-in", step=8, progress=gr.Progress()):
|
46 |
global step_loaded
|
47 |
global base_loaded
|
48 |
global motion_loaded
|
|
|
165 |
{"Focus: Cars in Street (Season: Rain, Daytime) (Shot from Distance) (Movement: Cars running)"} #Mixture
|
166 |
],
|
167 |
fn=generate_image,
|
168 |
+
inputs=[prompt],
|
169 |
outputs=video,
|
170 |
+
cache_examples=True,
|
171 |
)
|
172 |
|
173 |
gr.Markdown(MORE)
|