lixiang46
commited on
Commit
•
fe775c6
1
Parent(s):
534e5bb
delete spaces.gpu
Browse files- app.py +3 -5
- assets/title.md +2 -2
app.py
CHANGED
@@ -5,10 +5,8 @@ from PIL import Image
|
|
5 |
import gradio as gr
|
6 |
import numpy as np
|
7 |
import random
|
8 |
-
import spaces
|
9 |
|
10 |
|
11 |
-
@spaces.GPU
|
12 |
def start_tryon(imgs, garm_img, garment_des, seed):
|
13 |
|
14 |
return None
|
@@ -57,11 +55,11 @@ with gr.Blocks(css=css) as Tryon:
|
|
57 |
garm_img = gr.Image(label="Garment image", sources='upload', type="pil")
|
58 |
example = gr.Examples(
|
59 |
inputs=garm_img,
|
60 |
-
examples_per_page=
|
61 |
examples=garm_list_path)
|
62 |
with gr.Column():
|
63 |
-
image_out = gr.Image(label="Output",
|
64 |
-
try_button = gr.Button(value="Try-on")
|
65 |
|
66 |
|
67 |
with gr.Column():
|
|
|
5 |
import gradio as gr
|
6 |
import numpy as np
|
7 |
import random
|
|
|
8 |
|
9 |
|
|
|
10 |
def start_tryon(imgs, garm_img, garment_des, seed):
|
11 |
|
12 |
return None
|
|
|
55 |
garm_img = gr.Image(label="Garment image", sources='upload', type="pil")
|
56 |
example = gr.Examples(
|
57 |
inputs=garm_img,
|
58 |
+
examples_per_page=10,
|
59 |
examples=garm_list_path)
|
60 |
with gr.Column():
|
61 |
+
image_out = gr.Image(label="Output", show_share_button=False)
|
62 |
+
try_button = gr.Button(value="Try-on", elem_id="button")
|
63 |
|
64 |
|
65 |
with gr.Column():
|
assets/title.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c86a5e30f526a0500fe8ede780fe76ce4e0fe46378511f00df575cacd6ca72b
|
3 |
+
size 605
|