KingNish commited on
Commit
4181fbb
1 Parent(s): 8c110aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, select_base, select_motion, select_step],
169
  outputs=video,
170
- cache_examples=False,
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)