Spaces:
Runtime error
Runtime error
Change output
Browse files
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
|
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()
|