Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,6 +49,8 @@ variant = st.selectbox(
|
|
| 49 |
"Choose the model",
|
| 50 |
("ResNet50v2-Basemodel", "ResNet50v2-Finetuned"),
|
| 51 |
index=None,
|
|
|
|
|
|
|
| 52 |
)
|
| 53 |
st.write("You selected model: ", variant)
|
| 54 |
binary = st.toggle("Activate binary classification")
|
|
@@ -69,10 +71,10 @@ st.divider()
|
|
| 69 |
|
| 70 |
file_name = st.file_uploader("Choose an image...")
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
|
| 75 |
-
if file_name is not None
|
| 76 |
col1, col2 = st.columns(2)
|
| 77 |
image = Image.open(file_name)
|
| 78 |
image = ImageOps.exif_transpose(image)
|
|
|
|
| 49 |
"Choose the model",
|
| 50 |
("ResNet50v2-Basemodel", "ResNet50v2-Finetuned"),
|
| 51 |
index=None,
|
| 52 |
+
placeholder="Choose a model",
|
| 53 |
+
label_visibility="hidden"
|
| 54 |
)
|
| 55 |
st.write("You selected model: ", variant)
|
| 56 |
binary = st.toggle("Activate binary classification")
|
|
|
|
| 71 |
|
| 72 |
file_name = st.file_uploader("Choose an image...")
|
| 73 |
|
| 74 |
+
st.button("execute classification", type="primary")
|
| 75 |
|
| 76 |
|
| 77 |
+
if file_name is not None:
|
| 78 |
col1, col2 = st.columns(2)
|
| 79 |
image = Image.open(file_name)
|
| 80 |
image = ImageOps.exif_transpose(image)
|