ttcielott commited on
Commit
b4a03d4
1 Parent(s): f0ad8e8

revise if-clause

Browse files
Files changed (1) hide show
  1. app.py +10 -9
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
- img = camera
29
- if upload:
30
- img = upload
 
31
 
32
- st.image(img, width = 400)
33
- result, sugg = predict(img)
34
- st.subheader(result)
35
- st.subheader('Pair your outfit with these colors.')
36
- st.image(sugg, width = 400)
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