Spaces:
Runtime error
Runtime error
chore: include new samples in options
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ with st.sidebar:
|
|
63 |
information = st.radio(
|
64 |
"Choose one predictor:?",
|
65 |
('Base Common-Crawl π©', 'Hierarchical Common-Crawl π©'))
|
66 |
-
image_choice = st.selectbox('Pick one π', ['1', '2', '3'], index=1)
|
67 |
|
68 |
st.text(f'{information} mode is ON!\nTarget π: {image_choice}') # \n(opening image @:./img/receipt-{receipt}.png)')
|
69 |
|
@@ -72,7 +72,9 @@ col1, col2 = st.columns(2)
|
|
72 |
image_choice_map = {
|
73 |
'1': 'commoncrawl_amandalacombznewspolice-bust-man-sawed-oal_1.jpg',
|
74 |
'2': 'commoncrawl_canyonhillschroniclecomtagwomens-basketbll_0.png',
|
75 |
-
'3': 'commoncrawl_celstuttgartdeideaa-different-stort-of-nfe_0.png'
|
|
|
|
|
76 |
}
|
77 |
image = Image.open(f'samples/{image_choice_map[image_choice]}')
|
78 |
with col1:
|
|
|
63 |
information = st.radio(
|
64 |
"Choose one predictor:?",
|
65 |
('Base Common-Crawl π©', 'Hierarchical Common-Crawl π©'))
|
66 |
+
image_choice = st.selectbox('Pick one π', ['1', '2', '3', '4', '5'], index=1)
|
67 |
|
68 |
st.text(f'{information} mode is ON!\nTarget π: {image_choice}') # \n(opening image @:./img/receipt-{receipt}.png)')
|
69 |
|
|
|
72 |
image_choice_map = {
|
73 |
'1': 'commoncrawl_amandalacombznewspolice-bust-man-sawed-oal_1.jpg',
|
74 |
'2': 'commoncrawl_canyonhillschroniclecomtagwomens-basketbll_0.png',
|
75 |
+
'3': 'commoncrawl_celstuttgartdeideaa-different-stort-of-nfe_0.png',
|
76 |
+
'4': 'commoncrawl_abusoftbplacednetsearchphpsearchidunanswae_0.png',
|
77 |
+
'5': 'commoncrawl_addxorrolblogspotcomessays-about-managemml_1.png'
|
78 |
}
|
79 |
image = Image.open(f'samples/{image_choice_map[image_choice]}')
|
80 |
with col1:
|