Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ learner = load_learner('model.pkl')
|
|
7 |
categories = ("Celebration", "Riot")
|
8 |
|
9 |
def classify_image(image):
|
10 |
-
pred, idx, probs = learner.predict(
|
11 |
return dict(zip(categories, map(float, probs)))
|
12 |
|
13 |
image = gr.inputs.Image(shape=(192, 192))
|
7 |
categories = ("Celebration", "Riot")
|
8 |
|
9 |
def classify_image(image):
|
10 |
+
pred, idx, probs = learner.predict(image)
|
11 |
return dict(zip(categories, map(float, probs)))
|
12 |
|
13 |
image = gr.inputs.Image(shape=(192, 192))
|