Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,11 +81,11 @@ def detect(image):
|
|
81 |
|
82 |
return pred_dress_s, cosin
|
83 |
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
|
91 |
-
|
|
|
81 |
|
82 |
return pred_dress_s, cosin
|
83 |
|
84 |
+
demo = gr.Interface(
|
85 |
+
fn=detect,
|
86 |
+
inputs=gr.Image(type="numpy", label="Upload an image"),
|
87 |
+
outputs=[gr.Textbox(label = "Predictions"),
|
88 |
+
gr.Number(label="Typicality Score")],
|
89 |
+
title='Dress Classification')
|
90 |
|
91 |
+
demo.launch()
|