Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def query(prompt, is_negative=False, gpt=True, model="DALL-E 3 XL", steps=30, cf
|
|
127 |
if response.status_code == 503:
|
128 |
raise gr.Error(f"😭 Прости... Но сервера перегружены...")
|
129 |
return None
|
130 |
-
raise gr.Error(f"😫 Прости, произошла ошибочка..")
|
131 |
return None
|
132 |
|
133 |
try:
|
@@ -162,7 +162,7 @@ with gr.Blocks(css=css, theme="YTheme/KidsShool") as dalle:
|
|
162 |
|
163 |
with gr.Tab("ℹ️ Информация"):
|
164 |
with gr.Row():
|
165 |
-
gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|
166 |
with gr.Row():
|
167 |
with gr.Column():
|
168 |
gr.HTML("""<button class="lg secondary svelte-cmf5ev" onclick="window.open('http://ai-hub.rf.gd', '_blank');">AI-HUB</button>""")
|
|
|
127 |
if response.status_code == 503:
|
128 |
raise gr.Error(f"😭 Прости... Но сервера перегружены...")
|
129 |
return None
|
130 |
+
raise gr.Error(f"😫 Прости, произошла ошибочка.. Попробуй ещё раз позже.")
|
131 |
return None
|
132 |
|
133 |
try:
|
|
|
162 |
|
163 |
with gr.Tab("ℹ️ Информация"):
|
164 |
with gr.Row():
|
165 |
+
gr.Textbox(label="📝 Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|
166 |
with gr.Row():
|
167 |
with gr.Column():
|
168 |
gr.HTML("""<button class="lg secondary svelte-cmf5ev" onclick="window.open('http://ai-hub.rf.gd', '_blank');">AI-HUB</button>""")
|