Spaces:
Sleeping
Sleeping
Commit
·
bc2a9ae
1
Parent(s):
8b4348f
imported re
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
|
|
4 |
|
5 |
-
learn = load_learner('export.pkl')
|
6 |
|
7 |
def from_csv(x):
|
8 |
try:
|
@@ -18,6 +18,8 @@ def from_csv(x):
|
|
18 |
# print('check these files')
|
19 |
# print(x)
|
20 |
return 0
|
|
|
|
|
21 |
|
22 |
labels = learn.dls.vocab
|
23 |
def predict(img):
|
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
+
import re
|
5 |
|
|
|
6 |
|
7 |
def from_csv(x):
|
8 |
try:
|
|
|
18 |
# print('check these files')
|
19 |
# print(x)
|
20 |
return 0
|
21 |
+
|
22 |
+
learn = load_learner('export.pkl')
|
23 |
|
24 |
labels = learn.dls.vocab
|
25 |
def predict(img):
|