Kelly Nicholes commited on
Commit
a2d2025
·
1 Parent(s): 5284493

Use the example from huggingface

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,4 +11,6 @@ def predict(img):
11
  pred,pred_idx,probs = learn.predict(img)
12
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
13
 
14
- gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=True)
 
 
 
11
  pred,pred_idx,probs = learn.predict(img)
12
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
13
 
14
+ demo = gr.Interface(sepia, gr.Image(), "image")
15
+ demo.launch()
16
+ # gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=True)