Spaces:
Runtime error
Runtime error
Fix Runtime Error
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -13,5 +13,5 @@ def predict(img):
|
|
| 13 |
pred,pred_idx,probs = learn.predict(img)
|
| 14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 15 |
|
| 16 |
-
iface = gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(
|
| 17 |
iface.launch()
|
|
|
|
| 13 |
pred,pred_idx,probs = learn.predict(img)
|
| 14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 15 |
|
| 16 |
+
iface = gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch()
|
| 17 |
iface.launch()
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
gradio
|
| 2 |
fastai
|
| 3 |
-
|
|
|
|
| 1 |
gradio
|
| 2 |
fastai
|
| 3 |
+
scikit-image
|