Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
lixiang46
commited on
Commit
•
81ef1d4
1
Parent(s):
332ec70
test
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ def start_tryon(person_img, garment_img, seed, randomize_seed):
|
|
45 |
print(response)
|
46 |
info = "Try again latter"
|
47 |
else:
|
|
|
48 |
info = "URL error, pleace contact the admin"
|
49 |
|
50 |
return result_img, seed, info
|
@@ -110,7 +111,7 @@ with gr.Blocks(css=css) as Tryon:
|
|
110 |
image_out = gr.Image(label="Output", show_share_button=False)
|
111 |
with gr.Row():
|
112 |
seed_used = gr.Number(label="Seed Used")
|
113 |
-
result_info = gr.Text(label="
|
114 |
try_button = gr.Button(value="Try-on", elem_id="button")
|
115 |
|
116 |
|
|
|
45 |
print(response)
|
46 |
info = "Try again latter"
|
47 |
else:
|
48 |
+
print(response)
|
49 |
info = "URL error, pleace contact the admin"
|
50 |
|
51 |
return result_img, seed, info
|
|
|
111 |
image_out = gr.Image(label="Output", show_share_button=False)
|
112 |
with gr.Row():
|
113 |
seed_used = gr.Number(label="Seed Used")
|
114 |
+
result_info = gr.Text(label="Response")
|
115 |
try_button = gr.Button(value="Try-on", elem_id="button")
|
116 |
|
117 |
|