Spaces:
Runtime error
Runtime error
Update ui/gradio_ui.py
Browse files- ui/gradio_ui.py +8 -1
ui/gradio_ui.py
CHANGED
|
@@ -11,7 +11,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
|
|
| 11 |
|
| 12 |
#with gr.Row():
|
| 13 |
with gr.Column():
|
| 14 |
-
result=gr.Image(type="pil", label="
|
| 15 |
|
| 16 |
|
| 17 |
with gr.Row():
|
|
@@ -27,6 +27,13 @@ def ui(controller):#get_first_result,get_second_result): #controller):
|
|
| 27 |
second_negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="disfigured, extra digit, fewer digits, cropped, worst quality, low quality")
|
| 28 |
second_prompt_helper = gr.Button(value="Prompt Helper", variant="primary")
|
| 29 |
result_button = gr.Button(value="Paint It", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
improve_sketch.click(fn=controller.get_first_result,
|
|
|
|
| 11 |
|
| 12 |
#with gr.Row():
|
| 13 |
with gr.Column():
|
| 14 |
+
result=gr.Image(type="pil", label="Colored Image")
|
| 15 |
|
| 16 |
|
| 17 |
with gr.Row():
|
|
|
|
| 27 |
second_negative_prompt = gr.Textbox(label="Negative prompt", lines=3, value="disfigured, extra digit, fewer digits, cropped, worst quality, low quality")
|
| 28 |
second_prompt_helper = gr.Button(value="Prompt Helper", variant="primary")
|
| 29 |
result_button = gr.Button(value="Paint It", variant="primary")
|
| 30 |
+
|
| 31 |
+
with gr.Row():
|
| 32 |
+
gr.Examples([["./examples/sketch.png"],
|
| 33 |
+
["solo, open mouth, white background, standing, tail, full body,bmonochrome, greyscale, from side, no humans, animal, dog, animal focus, realistic, walk on the street, add city on the backstage, city street"],
|
| 34 |
+
["solo, open mouth, simple background, grey background, standing, full body, monochrome, greyscale, from side, no humans, animal, dog, animal focus, lineart, wolf"]],
|
| 35 |
+
[sketch, first_prompt, second_prompt],
|
| 36 |
+
label='Examples. Be concrete as much as possible.')
|
| 37 |
|
| 38 |
|
| 39 |
improve_sketch.click(fn=controller.get_first_result,
|