Spaces:
Running
Running
Update app.py
#3
by edubb69696969 - opened
app.py
CHANGED
|
@@ -60,9 +60,7 @@ def generate_image(
|
|
| 60 |
ratio=ratio
|
| 61 |
)
|
| 62 |
return image
|
| 63 |
-
|
| 64 |
-
logging.error(f"Generation failed: {e}", exc_info=True)
|
| 65 |
-
raise gr.Error("Generation failed. Please try a different prompt or check for NSFW content.")
|
| 66 |
|
| 67 |
|
| 68 |
with gr.Blocks(title="Somnium Image Generator") as demo:
|
|
|
|
| 60 |
ratio=ratio
|
| 61 |
)
|
| 62 |
return image
|
| 63 |
+
|
|
|
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
with gr.Blocks(title="Somnium Image Generator") as demo:
|