Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
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,
|