Newbie7 commited on
Commit
81cde6e
ยท
verified ยท
1 Parent(s): 5e439b9

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +26 -0
  2. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from PIL import Image
3
+
4
+ def fake_tryon(top, bottom):
5
+ # ์ด๊ฑด ์ž„์‹œ ์ฝ”๋“œ์ž…๋‹ˆ๋‹ค (์‹ค์ œ AI๊ฐ€ ์•„๋‹ˆ๊ณ  ๋‘ ์ด๋ฏธ์ง€๋ฅผ ์œ„์•„๋ž˜๋กœ ๋ถ™์ž„)
6
+ top = top.resize((512, 512))
7
+ bottom = bottom.resize((512, 512))
8
+
9
+ result = Image.new("RGB", (512, 1024))
10
+ result.paste(top, (0, 0))
11
+ result.paste(bottom, (0, 512))
12
+
13
+ return result
14
+
15
+ demo = gr.Interface(
16
+ fn=fake_tryon,
17
+ inputs=[
18
+ gr.Image(type="pil", label="Top"),
19
+ gr.Image(type="pil", label="Bottom")
20
+ ],
21
+ outputs=gr.Image(type="pil", label="Result"),
22
+ title="๐Ÿงฅ AI Fashion Try-On (MVP)",
23
+ description="Upload top & bottom images to preview how they might look together (basic demo)."
24
+ )
25
+
26
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio
2
+ pillow