Spaces:
Build error
Build error
Commit
·
0e61e4a
1
Parent(s):
f73329c
updated app
Browse files
app.py
CHANGED
|
@@ -219,7 +219,8 @@ def rankedAttributionsBySegm(attr, segm):
|
|
| 219 |
currentRank -= 1
|
| 220 |
return rankedSegmImg
|
| 221 |
|
| 222 |
-
labels = st.text_input('
|
|
|
|
| 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)
|
|
@@ -252,11 +253,6 @@ with col2: # To display brand logo
|
|
| 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:
|
| 262 |
# To read file as bytes:
|
|
|
|
| 219 |
currentRank -= 1
|
| 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. BALLYS) before dragging the image.')
|
| 224 |
|
| 225 |
image = Image.open('demo_image/demo_ballys.jpg') #Brand logo image (optional)
|
| 226 |
image2 = Image.open('demo_image/demo_ronaldo.jpg') #Brand logo image (optional)
|
|
|
|
| 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:
|
| 258 |
# To read file as bytes:
|