Eaglebelt commited on
Commit
9e050dc
·
verified ·
1 Parent(s): eb45514

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -17
app.py CHANGED
@@ -49,24 +49,21 @@ def virtual_tryon(
49
 
50
 
51
  with gr.Blocks() as demo:
52
- gr.Markdown("## Leffa Virtual Try-On")
53
- with gr.Row():
54
- src = gr.Image(sources="upload", type="filepath", label="Person Image")
55
- ref = gr.Image(sources="upload",
56
- type="filepath",
57
- label="Garment Image")
58
- garment_type = gr.Radio(
59
- choices=[("Upper", "upper_body"), ("Lower", "lower_body"),
60
- ("Dress", "dresses")],
61
- value="upper_body",
62
- label="Garment Type",
63
- )
64
 
65
- with gr.Column():
66
- out = gr.Image(
67
- type="filepath",
68
- label="Result",
69
- )
 
 
 
 
70
  btn = gr.Button("Generate")
71
  btn.click(virtual_tryon, [src, ref, garment_type], out)
72
 
 
49
 
50
 
51
  with gr.Blocks() as demo:
52
+ gr.Markdown("## V_TRY DEMO")
53
+ with gr.Row(min_width=600):
54
+ with gr.Column:
55
+ src = gr.Image(sources="upload", type="filepath", label="Person Image")
56
+ ref = gr.Image(sources="upload", type="filepath", label="Garment Image")
 
 
 
 
 
 
 
57
 
58
+ garment_type = gr.Radio(
59
+ choices=[("Upper", "upper_body"), ("Lower", "lower_body"),("Dress", "dresses")],
60
+ value="upper_body",
61
+ label="Garment Type",
62
+ )
63
+
64
+ with gr.Column():
65
+ out = gr.Image(type="filepath",label="Result",
66
+ )
67
  btn = gr.Button("Generate")
68
  btn.click(virtual_tryon, [src, ref, garment_type], out)
69