Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -142,23 +142,12 @@ def Piper(image,positive,negative,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,
|
158 |
negative_prompt=negative,
|
159 |
height=1024,
|
160 |
width=576,
|
161 |
-
ip_adapter_image=image,
|
162 |
num_inference_steps=step,
|
163 |
guidance_scale=1,
|
164 |
num_frames=(fps*time)
|
|
|
142 |
|
143 |
pipe.to(device)
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
return pipe(
|
146 |
positive,
|
147 |
negative_prompt=negative,
|
148 |
height=1024,
|
149 |
width=576,
|
150 |
+
ip_adapter_image=image.convert("RGB").resize((576,1024)),
|
151 |
num_inference_steps=step,
|
152 |
guidance_scale=1,
|
153 |
num_frames=(fps*time)
|