Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def classify_image(image):
|
|
64 |
output = {labels.get(i): float(results[i]) for i in range(len(results))}
|
65 |
print("output is ...", output)
|
66 |
result = output if max(output.values()) >=0.98 else {"NO_CIFAR10_CLASS": 1}
|
67 |
-
return result
|
68 |
|
69 |
|
70 |
inputs = gr.components.Image(type="pil", label="Upload an image")
|
|
|
64 |
output = {labels.get(i): float(results[i]) for i in range(len(results))}
|
65 |
print("output is ...", output)
|
66 |
result = output if max(output.values()) >=0.98 else {"NO_CIFAR10_CLASS": 1}
|
67 |
+
return result
|
68 |
|
69 |
|
70 |
inputs = gr.components.Image(type="pil", label="Upload an image")
|