zenafey commited on
Commit
ad458d7
1 Parent(s): 690a721

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ def generate_image(upload_images, prompt, negative_prompt, style_name, steps, pr
25
 
26
 
27
  def error_if_no_img(prompt):
28
- raise gr.Error("test") if ("img" not in prompt)
 
29
 
30
 
31
 
 
25
 
26
 
27
  def error_if_no_img(prompt):
28
+ if "img" not in prompt:
29
+ raise gr.Error("test")
30
 
31
 
32