Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,12 @@ def predict_pokemon(image):
|
|
29 |
|
30 |
return probabilities_dict
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
-
|
37 |
-
|
38 |
|
39 |
if uploaded_image is not None:
|
40 |
image = Image.open(uploaded_image)
|
|
|
29 |
|
30 |
return probabilities_dict
|
31 |
|
32 |
+
# Streamlit interface
|
33 |
+
st.title("Pokemon Classifier")
|
34 |
+
st.write("A simple MLP classification model for image classification using a pretrained model.")
|
35 |
|
36 |
+
# Upload image
|
37 |
+
uploaded_image = st.file_uploader("Choose an image...", type=["jpg", "png"])
|
38 |
|
39 |
if uploaded_image is not None:
|
40 |
image = Image.open(uploaded_image)
|