Spaces:
Build error
Build error
Commit
·
16c1073
1
Parent(s):
0c7bb87
added new imgs
Browse files
app.py
CHANGED
@@ -220,19 +220,12 @@ def rankedAttributionsBySegm(attr, segm):
|
|
220 |
return rankedSegmImg
|
221 |
|
222 |
labels = st.text_input('Drag one of the images from the right towards to box below (or you can choose your own image). '
|
223 |
-
'You need to put the text of the image in the textbox below first (e.g.
|
224 |
|
225 |
-
image = Image.open('demo_image/
|
226 |
-
image2 = Image.open('demo_image/
|
227 |
-
image3 = Image.open('demo_image/
|
228 |
-
image4 = Image.open('demo_image/
|
229 |
-
image5 = Image.open('demo_image/demo_bus.jpg') #Brand logo image (optional)
|
230 |
-
image6 = Image.open('demo_image/demo_car.jpg') #Brand logo image (optional)
|
231 |
-
image7 = Image.open('demo_image/demo_flash.jpg') #Brand logo image (optional)
|
232 |
-
image8 = Image.open('demo_image/demo_gas.jpg') #Brand logo image (optional)
|
233 |
-
image9 = Image.open('demo_image/demo_university.jpg') #Brand logo image (optional)
|
234 |
-
image10 = Image.open('demo_image/demo_past.jpg') #Brand logo image (optional)
|
235 |
-
image11 = Image.open('demo_image/demo_queen.jpg') #Brand logo image (optional)
|
236 |
#Create two columns with different width
|
237 |
col1, col2 = st.columns( [0.8, 0.2])
|
238 |
with col1: # To display the header text using css style
|
@@ -245,13 +238,6 @@ with col2: # To display brand logo
|
|
245 |
st.image(image2, width=150)
|
246 |
st.image(image3, width=150)
|
247 |
st.image(image4, width=150)
|
248 |
-
st.image(image5, width=150)
|
249 |
-
st.image(image6, width=150)
|
250 |
-
st.image(image7, width=150)
|
251 |
-
st.image(image8, width=150)
|
252 |
-
st.image(image9, width=150)
|
253 |
-
st.image(image10, width=150)
|
254 |
-
st.image(image11, width=150)
|
255 |
|
256 |
uploaded_file = st.file_uploader("Choose a file", type=["png", "jpg"])
|
257 |
if uploaded_file is not None:
|
|
|
220 |
return rankedSegmImg
|
221 |
|
222 |
labels = st.text_input('Drag one of the images from the right towards to box below (or you can choose your own image). '
|
223 |
+
'You need to put the text of the image in the textbox below first (e.g. GAS) before dragging the image.')
|
224 |
|
225 |
+
image = Image.open('demo_image/demo_gas.jpg') #Brand logo image (optional)
|
226 |
+
image2 = Image.open('demo_image/demo_shakeshack.jpg') #Brand logo image (optional)
|
227 |
+
image3 = Image.open('demo_image/demo_ronaldo.jpg') #Brand logo image (optional)
|
228 |
+
image4 = Image.open('demo_image/demo_car.jpg') #Brand logo image (optional)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
#Create two columns with different width
|
230 |
col1, col2 = st.columns( [0.8, 0.2])
|
231 |
with col1: # To display the header text using css style
|
|
|
238 |
st.image(image2, width=150)
|
239 |
st.image(image3, width=150)
|
240 |
st.image(image4, width=150)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
uploaded_file = st.file_uploader("Choose a file", type=["png", "jpg"])
|
243 |
if uploaded_file is not None:
|