Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,50 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
gr.Markdown("""
|
5 |
# AI and Fashion E-Commerce
|
6 |
-
by
|
7 |
""")
|
8 |
|
|
|
9 |
gr.Markdown("""
|
|
|
10 |
## Virtual Try-On
|
11 |
![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/mARmPyep7W3MwGmvR_zWN.jpeg)
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
""")
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
theme = gr.themes.Base(
|
4 |
+
text_size=gr.themes.Size(lg="16px",
|
5 |
+
md="20px", # body
|
6 |
+
sm="12px",
|
7 |
+
xl="40px", # h2
|
8 |
+
xs="10px",
|
9 |
+
xxl="50px", # h1
|
10 |
+
xxs="9px"),
|
11 |
+
#spacing_size="lg",
|
12 |
+
)
|
13 |
+
|
14 |
+
css = """
|
15 |
+
h1, h2{
|
16 |
+
text-align: center;
|
17 |
+
}
|
18 |
+
|
19 |
+
"""
|
20 |
+
|
21 |
+
with gr.Blocks(theme=theme, css=css) as demo:
|
22 |
+
# Title
|
23 |
gr.Markdown("""
|
24 |
# AI and Fashion E-Commerce
|
25 |
+
<center> by <a href="https://www.tonyassi.com/" target="_blank">Tony Assi</a> </center>
|
26 |
""")
|
27 |
|
28 |
+
# Virtual Try-On
|
29 |
gr.Markdown("""
|
30 |
+
---
|
31 |
## Virtual Try-On
|
32 |
![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/mARmPyep7W3MwGmvR_zWN.jpeg)
|
33 |
+
|
34 |
+
Virtually try-on clothing by submitting your image and a clothing image. A novel approach to VTO using IP-Adapter inpainting and body segmentation. [Read more](https://huggingface.co/blog/tonyassi/virtual-try-on-ip-adapter)
|
35 |
+
|
36 |
+
[![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/tonyassi/fashion-try-on)
|
37 |
+
|
38 |
+
[![Google Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1d-NJNLdX6dqs5Qfm1UYDQknBrhwZXx7R?usp=sharing)
|
39 |
+
|
40 |
+
|
41 |
""")
|
42 |
|
43 |
+
gr.Markdown("""
|
44 |
+
## Sales Forecasting with Image Regression
|
45 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a824a8ca6cf9857d1349c/mrtzCY91RnLtnbx4LIj4x.png)
|
46 |
+
|
47 |
+
""")
|
48 |
+
|
49 |
|
50 |
demo.launch()
|