Spaces:
Running
Running
update ux format
Browse files- app.py +25 -2
- data/.DS_Store +0 -0
app.py
CHANGED
@@ -4,6 +4,29 @@ import time
|
|
4 |
import requests
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# assets loading
|
8 |
example_path = os.path.join(os.path.dirname(__file__), 'data')
|
9 |
|
@@ -88,7 +111,7 @@ def run_turbo(person_img, garm_img, category="Top"):
|
|
88 |
gr.Warning("Over heated, please try again later")
|
89 |
return None, info
|
90 |
|
91 |
-
with gr.Blocks() as Huhu_Turbo:
|
92 |
with gr.Row():
|
93 |
with gr.Column(elem_id = "col-garment"):
|
94 |
gr.HTML("""
|
@@ -145,7 +168,7 @@ with gr.Blocks() as Huhu_Turbo:
|
|
145 |
|
146 |
generate_button.click(fn=run_turbo, inputs=[person_img, garm_img, category], outputs=[result_img, result_info], api_name=False, concurrency_limit=30)
|
147 |
|
148 |
-
with gr.Column(elem_id = "col-
|
149 |
gr.HTML("""
|
150 |
<div style="display: flex; justify-content: center; align-items: center; text-align: center; font-size: 20px;">
|
151 |
<div> </div>
|
|
|
4 |
import requests
|
5 |
|
6 |
|
7 |
+
# ux format
|
8 |
+
tryon_css="""
|
9 |
+
#col-garment {
|
10 |
+
margin: 0 auto;
|
11 |
+
max-width: 420px;
|
12 |
+
}
|
13 |
+
#col-mid {
|
14 |
+
margin: 0 auto;
|
15 |
+
max-width: 420px;
|
16 |
+
}
|
17 |
+
#col-right {
|
18 |
+
margin: 0 auto;
|
19 |
+
max-width: 420px;
|
20 |
+
}
|
21 |
+
#col-examples {
|
22 |
+
margin: 0 auto;
|
23 |
+
max-width: 1000px;
|
24 |
+
}
|
25 |
+
#button {
|
26 |
+
color: blue;
|
27 |
+
}
|
28 |
+
"""
|
29 |
+
|
30 |
# assets loading
|
31 |
example_path = os.path.join(os.path.dirname(__file__), 'data')
|
32 |
|
|
|
111 |
gr.Warning("Over heated, please try again later")
|
112 |
return None, info
|
113 |
|
114 |
+
with gr.Blocks(css=tryon_css) as Huhu_Turbo:
|
115 |
with gr.Row():
|
116 |
with gr.Column(elem_id = "col-garment"):
|
117 |
gr.HTML("""
|
|
|
168 |
|
169 |
generate_button.click(fn=run_turbo, inputs=[person_img, garm_img, category], outputs=[result_img, result_info], api_name=False, concurrency_limit=30)
|
170 |
|
171 |
+
with gr.Column(elem_id = "col-examples"):
|
172 |
gr.HTML("""
|
173 |
<div style="display: flex; justify-content: center; align-items: center; text-align: center; font-size: 20px;">
|
174 |
<div> </div>
|
data/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|