Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,12 +127,17 @@ button:hover { background-color: #1500cc; }
|
|
| 127 |
|
| 128 |
with gr.Group(elem_classes=["container"]):
|
| 129 |
input_image = gr.Image(
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
analyze_button = gr.Button("π₯ Analyze My Fit")
|
| 137 |
|
| 138 |
category_html = gr.HTML()
|
|
|
|
| 127 |
|
| 128 |
with gr.Group(elem_classes=["container"]):
|
| 129 |
input_image = gr.Image(
|
| 130 |
+
type='pil',
|
| 131 |
+
label="Upload or Take a Picture",
|
| 132 |
+
sources=["upload", "webcam", "clipboard"],
|
| 133 |
+
image_mode="RGB",
|
| 134 |
+
elem_id="custom-image-input"
|
| 135 |
)
|
| 136 |
+
gr.Markdown("""
|
| 137 |
+
<p style='margin-top:-10px; font-size: 0.9rem; color: #555;'>
|
| 138 |
+
Click the π· camera icon to take a photo, the π file icon to upload one, or the π clipboard icon to paste.
|
| 139 |
+
</p>
|
| 140 |
+
""")
|
| 141 |
analyze_button = gr.Button("π₯ Analyze My Fit")
|
| 142 |
|
| 143 |
category_html = gr.HTML()
|