Zaiiida commited on
Commit
fa12051
·
verified ·
1 Parent(s): ad32167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -51,17 +51,7 @@ def infer(
51
  return image
52
 
53
 
54
- except Exception as e:
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):