Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -159,19 +159,25 @@ elif option == "image URL":
|
|
159 |
st.text("Problem reading image from", url)
|
160 |
|
161 |
elif option == "or try some preset images":
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
"
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
if (img_select):
|
177 |
url = str(img_select)[:100]
|
|
|
159 |
st.text("Problem reading image from", url)
|
160 |
|
161 |
elif option == "or try some preset images":
|
162 |
+
if select == 'dogs':
|
163 |
+
img_select = image_select(
|
164 |
+
label="Select a picture to detect",
|
165 |
+
images=[
|
166 |
+
"https://www.akc.org/wp-content/uploads/2018/05/Three-Australian-Shepherd-puppies-sitting-in-a-field.jpg",
|
167 |
+
|
168 |
+
"https://static.scientificamerican.com/sciam/cache/file/1FD432BD-1DC9-4EE3-B2F3494EBAE7DCAE_source.jpg"
|
169 |
+
],
|
170 |
+
captions=["Picture 1", "Picture 2"],)
|
171 |
+
|
172 |
+
if select == "furniture":
|
173 |
+
img_select = image_select(
|
174 |
+
label="Select a picture to detect",
|
175 |
+
images=[
|
176 |
+
"https://wpmedia.roomsketcher.com/content/uploads/2021/12/09085551/Living_room_idea_wood_details.jpg",
|
177 |
+
|
178 |
+
"https://media.houseandgarden.co.uk/photos/618946a9eea7137eaf372dee/master/w_1600%2Cc_limit/038-2.jpg"
|
179 |
+
],
|
180 |
+
captions=["Picture 3", "Picture 4" ],)
|
181 |
|
182 |
if (img_select):
|
183 |
url = str(img_select)[:100]
|