Update app.py
Browse files
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)):
|