Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
·
ccd51f8
1
Parent(s):
83d3f47
Update app file
Browse files
app.py
CHANGED
|
@@ -48,11 +48,11 @@ with col1:
|
|
| 48 |
}
|
| 49 |
return option_to_id[option]
|
| 50 |
st.write('##')
|
| 51 |
-
|
| 52 |
'Or select from example diagrams',
|
| 53 |
options = ['factory_pid.png', 'plant_pid.png', 'processing_pid.png'],
|
| 54 |
format_func = radio_func,
|
| 55 |
-
value = 'factory_pid.png',
|
| 56 |
)
|
| 57 |
with col3:
|
| 58 |
st.markdown('##### Preview')
|
|
@@ -60,5 +60,5 @@ with col3:
|
|
| 60 |
if image_file is not None:
|
| 61 |
image = Image.open(image_file)
|
| 62 |
else:
|
| 63 |
-
image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[
|
| 64 |
st.image(image, use_column_width = True)
|
|
|
|
| 48 |
}
|
| 49 |
return option_to_id[option]
|
| 50 |
st.write('##')
|
| 51 |
+
radio = st.radio(
|
| 52 |
'Or select from example diagrams',
|
| 53 |
options = ['factory_pid.png', 'plant_pid.png', 'processing_pid.png'],
|
| 54 |
format_func = radio_func,
|
| 55 |
+
#value = 'factory_pid.png',
|
| 56 |
)
|
| 57 |
with col3:
|
| 58 |
st.markdown('##### Preview')
|
|
|
|
| 60 |
if image_file is not None:
|
| 61 |
image = Image.open(image_file)
|
| 62 |
else:
|
| 63 |
+
image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[radio])
|
| 64 |
st.image(image, use_column_width = True)
|