Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
|
|
91 |
prompt = GoogleTranslator(source=language, target='en').translate(prompt)
|
92 |
print(f'\033[1mГенерация {key} перевод:\033[0m {prompt}')
|
93 |
|
94 |
-
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
95 |
print(f'\033[1mГенерация {key}:\033[0m {prompt}')
|
96 |
API_URL = mmodels[model]
|
97 |
if model == 'Animagine XL 2.0':
|
@@ -171,7 +171,8 @@ with gr.Blocks(css=css) as dalle:
|
|
171 |
|
172 |
with gr.Tab("Информация"):
|
173 |
with gr.Row():
|
174 |
-
|
|
|
175 |
with gr.Row():
|
176 |
gr.HTML("""<button class="lg secondary svelte-cmf5ev" style="width: 100%;" onclick="window.open('https://yufic.ru/a', '_blank');">AI-HUB</button>""")
|
177 |
gr.HTML("""<button class="lg secondary svelte-cmf5ev" style="width: 100%;" onclick="window.open('https://yufic.ru', '_blank');">YUFI</button>""")
|
|
|
91 |
prompt = GoogleTranslator(source=language, target='en').translate(prompt)
|
92 |
print(f'\033[1mГенерация {key} перевод:\033[0m {prompt}')
|
93 |
|
94 |
+
#prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
95 |
print(f'\033[1mГенерация {key}:\033[0m {prompt}')
|
96 |
API_URL = mmodels[model]
|
97 |
if model == 'Animagine XL 2.0':
|
|
|
171 |
|
172 |
with gr.Tab("Информация"):
|
173 |
with gr.Row():
|
174 |
+
# gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|
175 |
+
gr.Markdown("""Сделано YUFI, надеемся, что вам понравилось!""")
|
176 |
with gr.Row():
|
177 |
gr.HTML("""<button class="lg secondary svelte-cmf5ev" style="width: 100%;" onclick="window.open('https://yufic.ru/a', '_blank');">AI-HUB</button>""")
|
178 |
gr.HTML("""<button class="lg secondary svelte-cmf5ev" style="width: 100%;" onclick="window.open('https://yufic.ru', '_blank');">YUFI</button>""")
|