Ridealist commited on
Commit
72b7663
1 Parent(s): efa4fa2

Fix Runtime Error

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. 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(share=True)
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
- fastcore
 
1
  gradio
2
  fastai
3
+ scikit-image