Yaron Koresh commited on
Commit
519a034
·
verified ·
1 Parent(s): e09a947

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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