Spaces:
Runtime error
Runtime error
EdisonPhua
commited on
Commit
•
46bdc19
1
Parent(s):
bad7135
Fri, Mar 24, 2023, 9:22 AM +08:00
Browse files- Sockeye.jpg +0 -0
- SteelHead.jpg +0 -0
- app.py +5 -0
Sockeye.jpg
ADDED
SteelHead.jpg
ADDED
app.py
CHANGED
@@ -9,5 +9,10 @@ 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(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=True)
|
13 |
|
|
|
9 |
pred, pred_idx, probs = learn.predict(img)
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
12 |
+
|
13 |
+
examples = ['siamese.jpg']
|
14 |
+
interpretation='default'
|
15 |
+
enable_queue=True
|
16 |
+
|
17 |
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=True)
|
18 |
|