Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ st.divider()
|
|
| 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:
|
|
@@ -87,6 +87,7 @@ if file_name is not None:
|
|
| 87 |
#if image.format != "JPEG" and compress :
|
| 88 |
if compress :
|
| 89 |
image = jpg_compression(image)
|
|
|
|
| 90 |
|
| 91 |
col1.image(image, use_column_width=True)
|
| 92 |
predictions = get_prediction(image)
|
|
|
|
| 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:
|
|
|
|
| 87 |
#if image.format != "JPEG" and compress :
|
| 88 |
if compress :
|
| 89 |
image = jpg_compression(image)
|
| 90 |
+
st.button("re-run classification")
|
| 91 |
|
| 92 |
col1.image(image, use_column_width=True)
|
| 93 |
predictions = get_prediction(image)
|