markytools commited on
Commit
f73329c
·
1 Parent(s): a2001aa

updated app

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -219,12 +219,19 @@ def rankedAttributionsBySegm(attr, segm):
219
  currentRank -= 1
220
  return rankedSegmImg
221
 
222
- labels = st.text_input('You need to put the text of the image here (e.g. BALLYS)')
223
 
224
  image = Image.open('demo_image/demo_ballys.jpg') #Brand logo image (optional)
225
  image2 = Image.open('demo_image/demo_ronaldo.jpg') #Brand logo image (optional)
226
  image3 = Image.open('demo_image/demo_shakeshack.jpg') #Brand logo image (optional)
227
  image4 = Image.open('demo_image/demo_university.jpg') #Brand logo image (optional)
 
 
 
 
 
 
 
228
  #Create two columns with different width
229
  col1, col2 = st.columns( [0.8, 0.2])
230
  with col1: # To display the header text using css style
@@ -237,7 +244,18 @@ with col2: # To display brand logo
237
  st.image(image2, width=150)
238
  st.image(image3, width=150)
239
  st.image(image4, width=150)
 
 
 
 
 
 
 
240
 
 
 
 
 
241
 
242
  uploaded_file = st.file_uploader("Choose a file", type=["png", "jpg"])
243
  if uploaded_file is not None:
 
219
  currentRank -= 1
220
  return rankedSegmImg
221
 
222
+ labels = st.text_input('You need to put the text of the image here (e.g. BALLYS) before dragging the image.')
223
 
224
  image = Image.open('demo_image/demo_ballys.jpg') #Brand logo image (optional)
225
  image2 = Image.open('demo_image/demo_ronaldo.jpg') #Brand logo image (optional)
226
  image3 = Image.open('demo_image/demo_shakeshack.jpg') #Brand logo image (optional)
227
  image4 = Image.open('demo_image/demo_university.jpg') #Brand logo image (optional)
228
+ image5 = Image.open('demo_image/demo_bus.jpg') #Brand logo image (optional)
229
+ image6 = Image.open('demo_image/demo_car.jpg') #Brand logo image (optional)
230
+ image7 = Image.open('demo_image/demo_flash.jpg') #Brand logo image (optional)
231
+ image8 = Image.open('demo_image/demo_gas.jpg') #Brand logo image (optional)
232
+ image9 = Image.open('demo_image/demo_university.jpg') #Brand logo image (optional)
233
+ image10 = Image.open('demo_image/demo_past.jpg') #Brand logo image (optional)
234
+ image11 = Image.open('demo_image/demo_queen.jpg') #Brand logo image (optional)
235
  #Create two columns with different width
236
  col1, col2 = st.columns( [0.8, 0.2])
237
  with col1: # To display the header text using css style
 
244
  st.image(image2, width=150)
245
  st.image(image3, width=150)
246
  st.image(image4, width=150)
247
+ st.image(image5, width=150)
248
+ st.image(image6, width=150)
249
+ st.image(image7, width=150)
250
+ st.image(image8, width=150)
251
+ st.image(image9, width=150)
252
+ st.image(image10, width=150)
253
+ st.image(image11, width=150)
254
 
255
+ def img1OnClick():
256
+
257
+
258
+ st.button("" , img=image, )
259
 
260
  uploaded_file = st.file_uploader("Choose a file", type=["png", "jpg"])
261
  if uploaded_file is not None: