Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def func_classi(image):
|
|
10 |
print(f"This is a: {race}.")
|
11 |
print(f"Probability it's a black person: {probs[0]:.4f}.\nProbability it's a white person: {probs[1]:.4f}")
|
12 |
|
13 |
-
|
14 |
-
|
15 |
|
16 |
|
17 |
image=gr.inputs.Image(shape=(192,192))
|
|
|
10 |
print(f"This is a: {race}.")
|
11 |
print(f"Probability it's a black person: {probs[0]:.4f}.\nProbability it's a white person: {probs[1]:.4f}")
|
12 |
|
13 |
+
pred,idx,probs=learn.predict(img)
|
14 |
+
return dict(zip(categories,map(float,probs)))
|
15 |
|
16 |
|
17 |
image=gr.inputs.Image(shape=(192,192))
|