Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ url = "https://stablediffusionapi.com/api/v4/dreambooth"
|
|
8 |
# API ключ
|
9 |
api_key = os.getenv("KEY")
|
10 |
|
11 |
-
model_list = ["
|
12 |
|
13 |
|
14 |
# Функция для отправки запроса
|
@@ -45,9 +45,9 @@ def render(model, prompt, negative_prompt, width, height, guidance, seed, upscal
|
|
45 |
gr.Interface(
|
46 |
render,
|
47 |
inputs=[
|
48 |
-
gr.
|
49 |
gr.Textbox(label="Описание изображения:", placeholder="Введите описание изображения", lines=3),
|
50 |
-
gr.Textbox(label="Negative Prompt:", placeholder="Введите Negative Prompt", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry"),
|
51 |
gr.Slider(show_label=True, minimum=256, maximum=2048, label="Ширина:", value="512", step=1),
|
52 |
gr.Slider(show_label=True, minimum=256, maximum=2048, label="Высота:", value="512", step=1),
|
53 |
gr.Slider(show_label=True, minimum=1, maximum=20, label="CFG Scale:", value="7.5", step=0.5),
|
|
|
8 |
# API ключ
|
9 |
api_key = os.getenv("KEY")
|
10 |
|
11 |
+
model_list = ["AbsoluteReality 1.8.1", "Elldreth's Vivid Mix", "Anything V5", "Openjourney V4", "Analog Diffusion", "Lyriel 1.6", "Realistic Vision 5.0", "Dreamshaper 8", "epiCRealism v5", "CyberRealistic 3.3", "ToonYou 6", "Deliberate 3"]
|
12 |
|
13 |
|
14 |
# Функция для отправки запроса
|
|
|
45 |
gr.Interface(
|
46 |
render,
|
47 |
inputs=[
|
48 |
+
gr.Radio(interactive=True, value="Anything V5", show_label=True, label="Модель:", choices=model_list),
|
49 |
gr.Textbox(label="Описание изображения:", placeholder="Введите описание изображения", lines=3),
|
50 |
+
gr.Textbox(label="Negative Prompt:", placeholder="Введите Negative Prompt", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry", lines=3),
|
51 |
gr.Slider(show_label=True, minimum=256, maximum=2048, label="Ширина:", value="512", step=1),
|
52 |
gr.Slider(show_label=True, minimum=256, maximum=2048, label="Высота:", value="512", step=1),
|
53 |
gr.Slider(show_label=True, minimum=1, maximum=20, label="CFG Scale:", value="7.5", step=0.5),
|