Update app.py
Browse files
app.py
CHANGED
@@ -179,6 +179,12 @@ def mirror(image_output, scale_by, method, gfpgan, codeformer):
|
|
179 |
img = Image.open(BytesIO(response2.content))
|
180 |
return img
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
css = """
|
183 |
.gradio-container {background-color: MediumAquaMarine}
|
184 |
footer{display:none !important}
|
@@ -227,6 +233,10 @@ with gr.Blocks(css=css, theme=theme) as app:
|
|
227 |
gfpgan = gr.Slider(show_label=True, label="Effect GFPGAN (For facial improvement)", minimum=0, maximum=1, value=0, step=0.1)
|
228 |
with gr.Row():
|
229 |
codeformer = gr.Slider(show_label=True, label="Effect CodeFormer (Improve the face)", minimum=0, maximum=1, value=0, step=0.1)
|
|
|
|
|
|
|
|
|
230 |
|
231 |
with gr.Column():
|
232 |
text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
|
|
|
179 |
img = Image.open(BytesIO(response2.content))
|
180 |
return img
|
181 |
|
182 |
+
examples = [
|
183 |
+
"a beautiful woman with blonde hair and blue eyes",
|
184 |
+
"a beautiful woman with brown hair and grey eyes",
|
185 |
+
"a beautiful woman with black hair and brown eyes",
|
186 |
+
]
|
187 |
+
|
188 |
css = """
|
189 |
.gradio-container {background-color: MediumAquaMarine}
|
190 |
footer{display:none !important}
|
|
|
233 |
gfpgan = gr.Slider(show_label=True, label="Effect GFPGAN (For facial improvement)", minimum=0, maximum=1, value=0, step=0.1)
|
234 |
with gr.Row():
|
235 |
codeformer = gr.Slider(show_label=True, label="Effect CodeFormer (Improve the face)", minimum=0, maximum=1, value=0, step=0.1)
|
236 |
+
gr.Examples(
|
237 |
+
examples = examples,
|
238 |
+
inputs = [prompt],
|
239 |
+
)
|
240 |
|
241 |
with gr.Column():
|
242 |
text_button = gr.Button("Generate image", variant="primary", interactive=True, elem_id="generate")
|