Rooni commited on
Commit
0933e8d
·
verified ·
1 Parent(s): 3e41328

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -25,10 +25,10 @@ def generate_image(prompt, base="Anime", motion="", step=8, progress=gr.Progress
25
  except ValueError as e:
26
  # Handle GPU quota exceeded error
27
  if 'You have exceeded your GPU quota' in str(e):
28
- raise gr.Error("GPU Quota exceeded. Please try again later.")
29
  else:
30
- raise gr.Error(str(e))
31
-
32
  # Gradio Interface
33
  with gr.Blocks(css="style.css") as demo:
34
 
@@ -72,8 +72,6 @@ with gr.Blocks(css="style.css") as demo:
72
  ('2-Step', 2),
73
  ('4-Step', 4),
74
  ('8-Step', 8),
75
- ('10-Step BETA', 10),
76
- ('12-Step BETA', 12),
77
  ],
78
  value=4,
79
  interactive=True
 
25
  except ValueError as e:
26
  # Handle GPU quota exceeded error
27
  if 'You have exceeded your GPU quota' in str(e):
28
+ raise gr.Error("Произошла ошибка. Повторите попытку позже.")
29
  else:
30
+ raise gr.Error("Произошла ошибка. Повторите попытку позже.")
31
+
32
  # Gradio Interface
33
  with gr.Blocks(css="style.css") as demo:
34
 
 
72
  ('2-Step', 2),
73
  ('4-Step', 4),
74
  ('8-Step', 8),
 
 
75
  ],
76
  value=4,
77
  interactive=True