Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,13 +42,13 @@ def main():
|
|
42 |
#init_model()
|
43 |
|
44 |
#Select few sample images for the catagory of cloths
|
45 |
-
option = st.selectbox('Select from sample an images', ('cap', 'tee', 'dress'), index = -1)
|
46 |
-
st.text("OR")
|
47 |
file_name = st.file_uploader("Upload an image")
|
48 |
|
49 |
-
if file_name is None and option is not None:
|
50 |
|
51 |
-
|
52 |
|
53 |
if file_name is not None:
|
54 |
|
|
|
42 |
#init_model()
|
43 |
|
44 |
#Select few sample images for the catagory of cloths
|
45 |
+
#option = st.selectbox('Select from sample an images', ('cap', 'tee', 'dress'), index = -1)
|
46 |
+
#st.text("OR")
|
47 |
file_name = st.file_uploader("Upload an image")
|
48 |
|
49 |
+
#if file_name is None and option is not None:
|
50 |
|
51 |
+
# file_name = os.path.join(sample_img_path, option)
|
52 |
|
53 |
if file_name is not None:
|
54 |
|