Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,8 @@ def query(prompt, model, is_negative=False, steps=20, cfg_scale=7, seed=None):
|
|
36 |
API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/realistic-vision-v51"
|
37 |
if model == 'Incursios v1.6':
|
38 |
API_URL = "https://api-inference.huggingface.co/models/digiplay/incursiosMemeDiffusion_v1.6"
|
|
|
|
|
39 |
|
40 |
payload = {
|
41 |
"inputs": prompt,
|
@@ -59,7 +61,7 @@ with gr.Blocks(css=css) as dalle:
|
|
59 |
with gr.Row():
|
60 |
with gr.Column(elem_id="prompt-container"):
|
61 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
|
62 |
-
model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=["AbsoluteReality v1.8.1", "DALL-E 3 XL", "Playground v2", "Openjourney v4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit v2.5", "Realistic Vision 5.1", "Incursios v1.6"])
|
63 |
|
64 |
|
65 |
with gr.Tab("Расширенные настройки"):
|
|
|
36 |
API_URL = "https://api-inference.huggingface.co/models/stablediffusionapi/realistic-vision-v51"
|
37 |
if model == 'Incursios v1.6':
|
38 |
API_URL = "https://api-inference.huggingface.co/models/digiplay/incursiosMemeDiffusion_v1.6"
|
39 |
+
if model == 'Anime Detailer XL LoRA':
|
40 |
+
API_URL = "https://api-inference.huggingface.co/models/Linaqruf/anime-detailer-xl-lora"
|
41 |
|
42 |
payload = {
|
43 |
"inputs": prompt,
|
|
|
61 |
with gr.Row():
|
62 |
with gr.Column(elem_id="prompt-container"):
|
63 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
|
64 |
+
model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=["AbsoluteReality v1.8.1", "DALL-E 3 XL", "Playground v2", "Openjourney v4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit v2.5", "Realistic Vision 5.1", "Incursios v1.6", "Anime Detailer XL LoRA"])
|
65 |
|
66 |
|
67 |
with gr.Tab("Расширенные настройки"):
|