Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -51,17 +51,7 @@ def infer(
|
|
51 |
return image
|
52 |
|
53 |
|
54 |
-
|
55 |
-
# Log the exception if needed
|
56 |
-
print(f"Error during image generation: {e}")
|
57 |
-
|
58 |
-
# Raise a Gradio-specific error with a user-friendly message
|
59 |
-
raise gr.Error(
|
60 |
-
"You have exceeded your GPU quota or encountered an unexpected error. "
|
61 |
-
"Please wait a moment and try again."
|
62 |
-
)
|
63 |
-
|
64 |
-
|
65 |
|
66 |
# Define the custom theme with input styles
|
67 |
class CustomTheme(gr.themes.Base):
|
|
|
51 |
return image
|
52 |
|
53 |
|
54 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
# Define the custom theme with input styles
|
57 |
class CustomTheme(gr.themes.Base):
|