Anders Dahlen
commited on
Commit
•
3e6e985
1
Parent(s):
e529f3d
Fixed more typo stuff
Browse files
app.py
CHANGED
@@ -9,4 +9,8 @@ def predict(img):
|
|
9 |
pred,pred_idx,probs = learn.predict(img)
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
12 |
-
gr.Interface(
|
|
|
|
|
|
|
|
|
|
9 |
pred,pred_idx,probs = learn.predict(img)
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
12 |
+
gr.Interface(
|
13 |
+
fn=predict,
|
14 |
+
inputs=gr.inputs.Image(shape=(512, 512)),
|
15 |
+
outputs=gr.outputs.Label(num_top_classes=3)
|
16 |
+
).launch(share=True)
|