Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,12 @@ __all__ = ['learn', 'classify_image', 'categories', 'classifier', 'virtual','ima
|
|
4 |
from fastai.vision.all import *
|
5 |
import gradio as gr
|
6 |
import timm
|
|
|
7 |
|
|
|
|
|
|
|
|
|
8 |
def is_real(x): return x[0].isupper()
|
9 |
|
10 |
#|export
|
|
|
4 |
from fastai.vision.all import *
|
5 |
import gradio as gr
|
6 |
import timm
|
7 |
+
import pickle
|
8 |
|
9 |
+
with open('./model.pkl', 'rb') as f:
|
10 |
+
model = pickle.load(f)
|
11 |
+
|
12 |
+
|
13 |
def is_real(x): return x[0].isupper()
|
14 |
|
15 |
#|export
|