Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -268,14 +268,12 @@ def predict(image):
|
|
268 |
print("type output:", type(output))
|
269 |
print(output)
|
270 |
|
|
|
271 |
# annotated_img = (output[0] / 255.0 - mean)/std
|
272 |
-
annotated_img = classes[output[0][0].argmax(0)]
|
273 |
-
|
274 |
print("type annotated image:", type(annotated_img))
|
275 |
print(annotated_img)
|
276 |
|
277 |
-
# annotated_img = output[0]
|
278 |
-
|
279 |
return annotated_img
|
280 |
|
281 |
# Gradio interface
|
|
|
268 |
print("type output:", type(output))
|
269 |
print(output)
|
270 |
|
271 |
+
annotated_img = output[0]
|
272 |
# annotated_img = (output[0] / 255.0 - mean)/std
|
273 |
+
# annotated_img = classes[output[0][0].argmax(0)]
|
|
|
274 |
print("type annotated image:", type(annotated_img))
|
275 |
print(annotated_img)
|
276 |
|
|
|
|
|
277 |
return annotated_img
|
278 |
|
279 |
# Gradio interface
|