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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -169,7 +169,8 @@ def infer(pm):
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
 
169
  _do.append(f'{p1}')
170
  posi = " ".join(_do)
171
 
172
+ if neg == "" or pm["i"] == None or posi == "":
173
+ return None
174
  out = Piper(pm["i"],posi,neg,pm["m"])
175
  export_to_gif(out.frames[0],name,fps=fps)
176
  return name