Spaces:
Running
Running
hysts
commited on
Commit
•
fbc28bf
1
Parent(s):
e2d3c58
Change layout
Browse files
app.py
CHANGED
@@ -63,12 +63,6 @@ def main():
|
|
63 |
example_images = gr.Dataset(components=[input_image],
|
64 |
samples=[[path.as_posix()]
|
65 |
for path in paths])
|
66 |
-
|
67 |
-
with gr.Column():
|
68 |
-
with gr.Row():
|
69 |
-
label_image = gr.Image(label='Label Image',
|
70 |
-
type='numpy',
|
71 |
-
elem_id='label-image')
|
72 |
with gr.Row():
|
73 |
shape_text = gr.Textbox(
|
74 |
label='Shape Description',
|
@@ -85,9 +79,9 @@ Note: The outer clothing type and accessories can be omitted.''')
|
|
85 |
|
86 |
with gr.Column():
|
87 |
with gr.Row():
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
with gr.Row():
|
92 |
texture_text = gr.Textbox(
|
93 |
label='Texture Description',
|
@@ -110,6 +104,12 @@ Note: Currently, only 5 types of textures are supported, i.e., pure color, strip
|
|
110 |
with gr.Row():
|
111 |
generate_human_button = gr.Button('Generate Human')
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
gr.Markdown(FOOTER)
|
114 |
|
115 |
input_image.change(fn=model.process_pose_image,
|
63 |
example_images = gr.Dataset(components=[input_image],
|
64 |
samples=[[path.as_posix()]
|
65 |
for path in paths])
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
with gr.Row():
|
67 |
shape_text = gr.Textbox(
|
68 |
label='Shape Description',
|
79 |
|
80 |
with gr.Column():
|
81 |
with gr.Row():
|
82 |
+
label_image = gr.Image(label='Label Image',
|
83 |
+
type='numpy',
|
84 |
+
elem_id='label-image')
|
85 |
with gr.Row():
|
86 |
texture_text = gr.Textbox(
|
87 |
label='Texture Description',
|
104 |
with gr.Row():
|
105 |
generate_human_button = gr.Button('Generate Human')
|
106 |
|
107 |
+
with gr.Column():
|
108 |
+
with gr.Row():
|
109 |
+
result = gr.Image(label='Result',
|
110 |
+
type='numpy',
|
111 |
+
elem_id='result-image')
|
112 |
+
|
113 |
gr.Markdown(FOOTER)
|
114 |
|
115 |
input_image.change(fn=model.process_pose_image,
|