Laurits commited on
Commit
39f6d6c
·
1 Parent(s): f5cdcac

Change output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ learn = load_learner('model.pth')
5
 
6
  def classify_image(img):
7
  celebrity_name,_,probs = learn.predict(img)
8
- return {celebrity_name: probs[0]}
9
 
10
  image = gr.inputs.Image(shape=(224,224))
11
  label = gr.outputs.Label()
 
5
 
6
  def classify_image(img):
7
  celebrity_name,_,probs = learn.predict(img)
8
+ return celebrity_name
9
 
10
  image = gr.inputs.Image(shape=(224,224))
11
  label = gr.outputs.Label()