Spaces:
Runtime error
Runtime error
fix: init image previously
Browse files
app.py
CHANGED
@@ -74,12 +74,11 @@ image_choice_map = {
|
|
74 |
'2': 'commoncrawl_canyonhillschroniclecomtagwomens-basketbll_0.png',
|
75 |
'3': 'commoncrawl_celstuttgartdeideaa-different-stort-of-nfe_0.png'
|
76 |
}
|
77 |
-
|
78 |
with col1:
|
79 |
st.image(image, caption='Your target sample')
|
80 |
|
81 |
if st.button('Parse sample! π'):
|
82 |
-
image = Image.open(image_choice_map[image_choice])
|
83 |
image = image.convert('RGB')
|
84 |
image.save('./target_image.jpg')
|
85 |
image = Image.open('./target_image.jpg')
|
|
|
74 |
'2': 'commoncrawl_canyonhillschroniclecomtagwomens-basketbll_0.png',
|
75 |
'3': 'commoncrawl_celstuttgartdeideaa-different-stort-of-nfe_0.png'
|
76 |
}
|
77 |
+
image = Image.open(image_choice_map[image_choice])
|
78 |
with col1:
|
79 |
st.image(image, caption='Your target sample')
|
80 |
|
81 |
if st.button('Parse sample! π'):
|
|
|
82 |
image = image.convert('RGB')
|
83 |
image.save('./target_image.jpg')
|
84 |
image = Image.open('./target_image.jpg')
|