Spaces:
Sleeping
Sleeping
Commit ·
c201225
1
Parent(s): 7180c43
Corrigindo
Browse files
app.py
CHANGED
|
@@ -1,12 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.vision.all import *
|
| 3 |
|
| 4 |
-
|
| 5 |
__all__ = ['is_cat', 'learn', 'classify_image', 'categories', 'image', 'label', 'examples', 'intf']
|
| 6 |
|
| 7 |
def is_cat(x): return x[0].isupper()
|
| 8 |
|
| 9 |
-
learn =
|
| 10 |
|
| 11 |
categories = ('Bird', 'Forest')
|
| 12 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.vision.all import *
|
| 3 |
|
|
|
|
| 4 |
__all__ = ['is_cat', 'learn', 'classify_image', 'categories', 'image', 'label', 'examples', 'intf']
|
| 5 |
|
| 6 |
def is_cat(x): return x[0].isupper()
|
| 7 |
|
| 8 |
+
learn = load_learner('model.pkl')
|
| 9 |
|
| 10 |
categories = ('Bird', 'Forest')
|
| 11 |
|