Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,10 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
|
|
38 |
return image
|
39 |
|
40 |
examples = [
|
41 |
-
"
|
42 |
-
"
|
43 |
-
|
|
|
44 |
]
|
45 |
|
46 |
css="""
|
@@ -59,8 +60,9 @@ with gr.Blocks(css=css) as demo:
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
-
#
|
63 |
-
|
|
|
64 |
""")
|
65 |
|
66 |
with gr.Row():
|
@@ -73,33 +75,33 @@ with gr.Blocks(css=css) as demo:
|
|
73 |
container=False,
|
74 |
)
|
75 |
|
76 |
-
run_button = gr.Button("
|
77 |
|
78 |
-
result = gr.Image(label="
|
79 |
|
80 |
with gr.Accordion("Advanced Settings", open=False):
|
81 |
|
82 |
negative_prompt = gr.Text(
|
83 |
-
label="
|
84 |
max_lines=1,
|
85 |
placeholder="Enter a negative prompt",
|
86 |
-
visible=
|
87 |
)
|
88 |
|
89 |
seed = gr.Slider(
|
90 |
-
label="
|
91 |
minimum=0,
|
92 |
maximum=MAX_SEED,
|
93 |
step=1,
|
94 |
value=0,
|
95 |
)
|
96 |
|
97 |
-
randomize_seed = gr.Checkbox(label="
|
98 |
|
99 |
with gr.Row():
|
100 |
|
101 |
width = gr.Slider(
|
102 |
-
label="
|
103 |
minimum=256,
|
104 |
maximum=MAX_IMAGE_SIZE,
|
105 |
step=32,
|
@@ -107,7 +109,7 @@ with gr.Blocks(css=css) as demo:
|
|
107 |
)
|
108 |
|
109 |
height = gr.Slider(
|
110 |
-
label="
|
111 |
minimum=256,
|
112 |
maximum=MAX_IMAGE_SIZE,
|
113 |
step=32,
|
|
|
38 |
return image
|
39 |
|
40 |
examples = [
|
41 |
+
"Chic look, for a teenage girl",
|
42 |
+
"Chic look, for a teenage boy",
|
43 |
+
"Dark Academia, for a teenage",
|
44 |
+
|
45 |
]
|
46 |
|
47 |
css="""
|
|
|
60 |
|
61 |
with gr.Column(elem_id="col-container"):
|
62 |
gr.Markdown(f"""
|
63 |
+
# Штучний інтелект створює зображення 🖼 з тексту 🧾
|
64 |
+
Безкоштовна демоверсія для ознайомлення. Скоріше працює з кількома словами, рекомендовано англ.мову.
|
65 |
+
Автор-Губа.Р.
|
66 |
""")
|
67 |
|
68 |
with gr.Row():
|
|
|
75 |
container=False,
|
76 |
)
|
77 |
|
78 |
+
run_button = gr.Button("До роботи", scale=0)
|
79 |
|
80 |
+
result = gr.Image(label="Малював аж упрів!", show_label=True)
|
81 |
|
82 |
with gr.Accordion("Advanced Settings", open=False):
|
83 |
|
84 |
negative_prompt = gr.Text(
|
85 |
+
label="",
|
86 |
max_lines=1,
|
87 |
placeholder="Enter a negative prompt",
|
88 |
+
visible=True,
|
89 |
)
|
90 |
|
91 |
seed = gr.Slider(
|
92 |
+
label="Кількість операцій накладання.Збільшує час створення",
|
93 |
minimum=0,
|
94 |
maximum=MAX_SEED,
|
95 |
step=1,
|
96 |
value=0,
|
97 |
)
|
98 |
|
99 |
+
randomize_seed = gr.Checkbox(label="", value=True)
|
100 |
|
101 |
with gr.Row():
|
102 |
|
103 |
width = gr.Slider(
|
104 |
+
label="Ширина",
|
105 |
minimum=256,
|
106 |
maximum=MAX_IMAGE_SIZE,
|
107 |
step=32,
|
|
|
109 |
)
|
110 |
|
111 |
height = gr.Slider(
|
112 |
+
label="Висота",
|
113 |
minimum=256,
|
114 |
maximum=MAX_IMAGE_SIZE,
|
115 |
step=32,
|