Spaces:
Running
Running
Update app.py
Browse files
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("
|
29 |
else:
|
30 |
-
raise gr.Error(
|
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
|