Spaces:
Runtime error
Runtime error
alexrods
commited on
Commit
路
de532ae
1
Parent(s):
37e5074
add subheader to describe space in app.py
Browse files
app.py
CHANGED
|
@@ -58,13 +58,12 @@ def segmentation(input_image):
|
|
| 58 |
return (overlay, prediction_colormap)
|
| 59 |
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
st.header("Segmentacion de partes del cuerpo humano")
|
| 64 |
|
| 65 |
st.markdown("Sube una imagen o selecciona un ejemplo para segmentar las distintas partes del cuerpo humano")
|
| 66 |
|
| 67 |
-
file_imagen = st.file_uploader("Sube
|
| 68 |
|
| 69 |
examples = ["example_image_1.jpg", "example_image_2.jpg", "example_image_3.jpg"]
|
| 70 |
|
|
@@ -97,13 +96,10 @@ if file_imagen is not None:
|
|
| 97 |
col1, col2 = st.columns(2)
|
| 98 |
|
| 99 |
with col1:
|
| 100 |
-
st.subheader("
|
| 101 |
st.image(output[0], width=425)
|
| 102 |
|
| 103 |
with col2:
|
| 104 |
st.subheader("Mask: ")
|
| 105 |
st.image(output[1], width=425)
|
| 106 |
-
|
| 107 |
-
# article = "<div style='text-align: center;'><a href='https://keras.io/examples/vision/deeplabv3_plus/' target='_blank'>Keras example by Praveen Kaushik</a></div>"
|
| 108 |
-
# gr.Interface(segmentation, i, o, examples=examples, allow_flagging=False, analytics_enabled=False,
|
| 109 |
-
# title=title, description=description, article=article).launch(enable_queue=True)
|
|
|
|
| 58 |
return (overlay, prediction_colormap)
|
| 59 |
|
| 60 |
|
| 61 |
+
st.header("Segmentaci贸n de partes del cuerpo humano")
|
| 62 |
+
st.subheader("Demo de Spaces usando Streamlit y segmentacion de imagenes [Space original](https://huggingface.co/spaces/PKaushik/Human-Part-Segmentation)")
|
|
|
|
| 63 |
|
| 64 |
st.markdown("Sube una imagen o selecciona un ejemplo para segmentar las distintas partes del cuerpo humano")
|
| 65 |
|
| 66 |
+
file_imagen = st.file_uploader("Sube aqu铆 tu imagen", type=["png", "jpg", "jpeg"])
|
| 67 |
|
| 68 |
examples = ["example_image_1.jpg", "example_image_2.jpg", "example_image_3.jpg"]
|
| 69 |
|
|
|
|
| 96 |
col1, col2 = st.columns(2)
|
| 97 |
|
| 98 |
with col1:
|
| 99 |
+
st.subheader("Segmentaci贸n: ")
|
| 100 |
st.image(output[0], width=425)
|
| 101 |
|
| 102 |
with col2:
|
| 103 |
st.subheader("Mask: ")
|
| 104 |
st.image(output[1], width=425)
|
| 105 |
+
|
|
|
|
|
|
|
|
|