Spaces:
Runtime error
Runtime error
ttcielott
commited on
Commit
•
b4a03d4
1
Parent(s):
f0ad8e8
revise if-clause
Browse files
app.py
CHANGED
@@ -24,14 +24,15 @@ with col1:
|
|
24 |
upload = st.file_uploader("Upload a photo of your outfit")
|
25 |
|
26 |
with col2:
|
27 |
-
if camera:
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
|
|
24 |
upload = st.file_uploader("Upload a photo of your outfit")
|
25 |
|
26 |
with col2:
|
27 |
+
if camera or upload:
|
28 |
+
if camera:
|
29 |
+
img = camera
|
30 |
+
if upload:
|
31 |
+
img = upload
|
32 |
|
33 |
+
st.image(img, width = 400)
|
34 |
+
result, sugg = predict(img)
|
35 |
+
st.subheader(result)
|
36 |
+
st.subheader('Pair your outfit with these colors.')
|
37 |
+
st.image(sugg, width = 400)
|
38 |
|