Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,10 @@ def query(prompt, model, is_negative=False, steps=20, cfg_scale=7, seed=None):
|
|
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 |
-
if model == '
|
42 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
|
|
|
|
43 |
|
44 |
payload = {
|
45 |
"inputs": prompt,
|
@@ -63,7 +65,7 @@ with gr.Blocks(css=css) as dalle:
|
|
63 |
with gr.Row():
|
64 |
with gr.Column(elem_id="prompt-container"):
|
65 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
|
66 |
-
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", "
|
67 |
|
68 |
|
69 |
with gr.Tab("Расширенные настройки"):
|
|
|
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 |
+
if model == 'epiCRealism':
|
42 |
+
API_URL = "https://api-inference.huggingface.co/models/emilianJR/epiCRealism"
|
43 |
+
if model == 'Aurora':
|
44 |
+
API_URL = "https://api-inference.huggingface.co/models/SweetLuna/Aurora"
|
45 |
|
46 |
payload = {
|
47 |
"inputs": prompt,
|
|
|
65 |
with gr.Row():
|
66 |
with gr.Column(elem_id="prompt-container"):
|
67 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
|
68 |
+
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", "Aurora", "epiCRealism"])
|
69 |
|
70 |
|
71 |
with gr.Tab("Расширенные настройки"):
|