Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from fastai import *
|
|
| 7 |
from fastai.vision import *
|
| 8 |
#from fastbook import *
|
| 9 |
|
| 10 |
-
learn = load_learner('
|
| 11 |
|
| 12 |
labels = learn.dls.vocab
|
| 13 |
def predict(img):
|
|
@@ -23,7 +23,7 @@ interpretation = 'default'
|
|
| 23 |
enable_queue = True
|
| 24 |
|
| 25 |
gr.Interface(fn = predict, inputs = gr.inputs.Image(shape = (512, 512)),
|
| 26 |
-
outputs = gr.outputs.Label(num_top_classes =
|
| 27 |
title = title,
|
| 28 |
description = description,
|
| 29 |
article = article,
|
|
|
|
| 7 |
from fastai.vision import *
|
| 8 |
#from fastbook import *
|
| 9 |
|
| 10 |
+
learn = load_learner('clasma.pkl')
|
| 11 |
|
| 12 |
labels = learn.dls.vocab
|
| 13 |
def predict(img):
|
|
|
|
| 23 |
enable_queue = True
|
| 24 |
|
| 25 |
gr.Interface(fn = predict, inputs = gr.inputs.Image(shape = (512, 512)),
|
| 26 |
+
outputs = gr.outputs.Label(num_top_classes = 8),
|
| 27 |
title = title,
|
| 28 |
description = description,
|
| 29 |
article = article,
|