Spaces:
Runtime error
Runtime error
Update ui/gradio_ui.py
Browse files- ui/gradio_ui.py +5 -2
ui/gradio_ui.py
CHANGED
|
@@ -18,7 +18,7 @@ def ui(controller):#get_first_result,get_second_result): #controller):
|
|
| 18 |
with gr.Row():
|
| 19 |
with gr.Column():
|
| 20 |
sketch=gr.Sketchpad(sources = 'upload', label='Sketch', type='numpy', image_mode="L", brush=gr.Brush()) #gr.Image(sources = 'upload', label='Sketch', type = 'pil')
|
| 21 |
-
ser_image=gr.Image(type="pil"
|
| 22 |
|
| 23 |
with gr.Column():
|
| 24 |
improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
|
|
@@ -45,7 +45,10 @@ def ui(controller):#get_first_result,get_second_result): #controller):
|
|
| 45 |
with gr.Row():
|
| 46 |
gr.Examples(examples=[["./examples/sketch.png",
|
| 47 |
"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",
|
| 48 |
-
"solo, open mouth, simple background, grey background, standing, full body, monochrome, greyscale, from side, no humans, animal, dog, animal focus, lineart, wolf"]
|
|
|
|
|
|
|
|
|
|
| 49 |
inputs=[sketch, first_prompt, second_prompt],
|
| 50 |
label='Examples. Be concrete as much as possible.')
|
| 51 |
|
|
|
|
| 18 |
with gr.Row():
|
| 19 |
with gr.Column():
|
| 20 |
sketch=gr.Sketchpad(sources = 'upload', label='Sketch', type='numpy', image_mode="L", brush=gr.Brush()) #gr.Image(sources = 'upload', label='Sketch', type = 'pil')
|
| 21 |
+
ser_image=gr.Image(type="pil", visible=False)
|
| 22 |
|
| 23 |
with gr.Column():
|
| 24 |
improved_sketch_view = gr.Image(type="pil", label="Improved Sketch")
|
|
|
|
| 45 |
with gr.Row():
|
| 46 |
gr.Examples(examples=[["./examples/sketch.png",
|
| 47 |
"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",
|
| 48 |
+
"solo, open mouth, simple background, grey background, standing, full body, monochrome, greyscale, from side, no humans, animal, dog, animal focus, lineart, wolf"],
|
| 49 |
+
["./examples/cat.png",
|
| 50 |
+
"solo, simple background, animal ears, monochrome, greyscale, no humans, cat, white background",
|
| 51 |
+
"solo, looking at viewer, simple background, white background, monochrome, greyscale, no humans, animal, cat, slit pupils, animal focus, lineart, whiskers"]],
|
| 52 |
inputs=[sketch, first_prompt, second_prompt],
|
| 53 |
label='Examples. Be concrete as much as possible.')
|
| 54 |
|