Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -169,6 +169,7 @@ def infer(pm):
|
|
169 |
_do.append(f'{p1}')
|
170 |
posi = " ".join(_do)
|
171 |
|
|
|
172 |
out = Piper(pm["i"],posi,neg,pm["m"])
|
173 |
export_to_gif(out.frames[0],name,fps=fps)
|
174 |
return name
|
|
|
169 |
_do.append(f'{p1}')
|
170 |
posi = " ".join(_do)
|
171 |
|
172 |
+
if neg == "" or pm["i"] == None or posi == ""
|
173 |
out = Piper(pm["i"],posi,neg,pm["m"])
|
174 |
export_to_gif(out.frames[0],name,fps=fps)
|
175 |
return name
|