Spaces:
Running
Running
Dennis Cahillane
commited on
Commit
•
6b80f6c
1
Parent(s):
ce909ed
try to make HuggingFace Spaces work
Browse files
app.py
CHANGED
@@ -9,4 +9,4 @@ 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 |
examples = [['dolores.jpg'], ['hotdog.jpg']]
|
12 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), examples=examples, title=title, description=description, outputs=gr.outputs.Label(num_top_classes=3)).launch(
|
|
|
9 |
pred,pred_idx,probs = learn.predict(img)
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
examples = [['dolores.jpg'], ['hotdog.jpg']]
|
12 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), examples=examples, title=title, description=description, outputs=gr.outputs.Label(num_top_classes=3)).launch()
|