Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ def process_image_and_prompt(composite_pil, prompt, gemini_api_key):
|
|
| 89 |
result_img = result_img.convert("RGB")
|
| 90 |
return [result_img]
|
| 91 |
except Exception as e:
|
| 92 |
-
raise gr.Error(f"
|
| 93 |
|
| 94 |
# Build a Blocks-based interface to include the custom HTML header.
|
| 95 |
with gr.Blocks() as demo:
|
|
|
|
| 89 |
result_img = result_img.convert("RGB")
|
| 90 |
return [result_img]
|
| 91 |
except Exception as e:
|
| 92 |
+
raise gr.Error(f"NFSW Detected", duration=5)
|
| 93 |
|
| 94 |
# Build a Blocks-based interface to include the custom HTML header.
|
| 95 |
with gr.Blocks() as demo:
|