Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ with gr.Blocks() as demo:
|
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=5):
|
93 |
prompt = gr.Textbox(label="Опис зображення")
|
94 |
-
negative_prompt = gr.Textbox(label="
|
95 |
with gr.Column(scale=1):
|
96 |
model_choice = gr.Radio(
|
97 |
choices=list(MODEL_OPTIONS.keys()),
|
@@ -103,18 +103,18 @@ with gr.Blocks() as demo:
|
|
103 |
randomize_seed = gr.Checkbox(label="Випадковий Seed", value=True)
|
104 |
|
105 |
with gr.Row():
|
106 |
-
width = gr.Slider(label="Ширина", minimum=
|
107 |
-
height = gr.Slider(label="Висота", minimum=
|
108 |
with gr.Row():
|
109 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=0, maximum=20, step=0.5, value=7.5)
|
110 |
-
num_inference_steps = gr.Slider(label="Кроки інференсу", minimum=
|
111 |
|
112 |
with gr.Row():
|
113 |
num_images = gr.Slider(label="Кількість зображень", minimum=1, maximum=4, step=1, value=1)
|
114 |
|
115 |
-
run_button = gr.Button("
|
116 |
-
gallery = gr.Gallery(label="
|
117 |
-
status_text = gr.Textbox(label="
|
118 |
|
119 |
run_button.click(
|
120 |
fn=generate_image,
|
|
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=5):
|
93 |
prompt = gr.Textbox(label="Опис зображення")
|
94 |
+
negative_prompt = gr.Textbox(label="Не показувати", value="")
|
95 |
with gr.Column(scale=1):
|
96 |
model_choice = gr.Radio(
|
97 |
choices=list(MODEL_OPTIONS.keys()),
|
|
|
103 |
randomize_seed = gr.Checkbox(label="Випадковий Seed", value=True)
|
104 |
|
105 |
with gr.Row():
|
106 |
+
width = gr.Slider(label="Ширина", minimum=512, maximum=1024, step=64, value=DEFAULT_IMAGE_SIZE)
|
107 |
+
height = gr.Slider(label="Висота", minimum=512, maximum=1024, step=64, value=DEFAULT_IMAGE_SIZE)
|
108 |
with gr.Row():
|
109 |
guidance_scale = gr.Slider(label="Guidance Scale", minimum=0, maximum=20, step=0.5, value=7.5)
|
110 |
+
num_inference_steps = gr.Slider(label="Кроки інференсу", minimum=20, maximum=50, step=10, value=20)
|
111 |
|
112 |
with gr.Row():
|
113 |
num_images = gr.Slider(label="Кількість зображень", minimum=1, maximum=4, step=1, value=1)
|
114 |
|
115 |
+
run_button = gr.Button("Створити")
|
116 |
+
gallery = gr.Gallery(label="Створені зображення")
|
117 |
+
status_text = gr.Textbox(label="Виконання")
|
118 |
|
119 |
run_button.click(
|
120 |
fn=generate_image,
|