Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def predict_pokemon(image):
|
|
21 |
|
22 |
# Bild in das Modell einspeisen und Vorhersage treffen
|
23 |
prediction = model.predict(image[None, ...])
|
24 |
-
confidences = {labels[i]: np.round(float(prediction[0][i]), 2) for i in range(len(labels))}
|
25 |
return confidences
|
26 |
|
27 |
# Gradio Interface definieren
|
|
|
21 |
|
22 |
# Bild in das Modell einspeisen und Vorhersage treffen
|
23 |
prediction = model.predict(image[None, ...])
|
24 |
+
confidences = {labels[i]: np.round(float(prediction[0][i]), 2) for i in range(len(labels))}
|
25 |
return confidences
|
26 |
|
27 |
# Gradio Interface definieren
|