Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
13 |
|
14 |
models_list = ["AbsoluteReality 1.8.1", "DALL-E 3 XL", "Playground 2", "Openjourney 4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit 2.5", "Realistic Vision 5.1", "Incursios 1.6", "Anime Detailer XL LoRA", "epiCRealism", "PixelArt XL", "NewReality XL"]
|
15 |
|
16 |
-
def query(prompt, model,
|
17 |
language = detect(prompt)
|
18 |
key = random.randint(0, 999)
|
19 |
|
@@ -87,6 +87,6 @@ with gr.Blocks(css=css) as dalle:
|
|
87 |
with gr.Row():
|
88 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
89 |
|
90 |
-
text_button.click(query, inputs=[text_prompt, model,
|
91 |
|
92 |
dalle.launch(show_api=False)
|
|
|
13 |
|
14 |
models_list = ["AbsoluteReality 1.8.1", "DALL-E 3 XL", "Playground 2", "Openjourney 4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit 2.5", "Realistic Vision 5.1", "Incursios 1.6", "Anime Detailer XL LoRA", "epiCRealism", "PixelArt XL", "NewReality XL"]
|
15 |
|
16 |
+
def query(prompt, model, width, height, is_negative=False, steps=20, cfg_scale=7, seed=None):
|
17 |
language = detect(prompt)
|
18 |
key = random.randint(0, 999)
|
19 |
|
|
|
87 |
with gr.Row():
|
88 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
89 |
|
90 |
+
text_button.click(query, inputs=[text_prompt, model, width, height, negative_prompt], outputs=image_output)
|
91 |
|
92 |
dalle.launch(show_api=False)
|