Yaron Koresh commited on
Commit
46bac82
·
verified ·
1 Parent(s): e9fa1e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -141,6 +141,17 @@ def Piper(image,positive,negative,motion):
141
  last_motion = motion
142
 
143
  pipe.to(device)
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  return pipe(
146
  positive,
 
141
  last_motion = motion
142
 
143
  pipe.to(device)
144
+
145
+ if image == None:
146
+ return pipe(
147
+ positive,
148
+ negative_prompt=negative,
149
+ height=1024,
150
+ width=576,
151
+ num_inference_steps=step,
152
+ guidance_scale=1,
153
+ num_frames=(fps*time)
154
+ )
155
 
156
  return pipe(
157
  positive,