fffiloni commited on
Commit
744d3eb
1 Parent(s): bccea8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def infer(prompt):
39
  # Take the first word and convert it to a string variable
40
  status = str(words[0])
41
  if status == "True" :
42
- gr.Error("Don't.")
43
  else:
44
  results = pipe(prompt, guidance_scale=7.5)
45
  #for i in range(len(results.images)):
 
39
  # Take the first word and convert it to a string variable
40
  status = str(words[0])
41
  if status == "True" :
42
+ raise gr.Error("Don't.")
43
  else:
44
  results = pipe(prompt, guidance_scale=7.5)
45
  #for i in range(len(results.images)):