Spaces:
Runtime error
Runtime error
ttcielott
commited on
Commit
•
fe3defd
1
Parent(s):
8ec473e
add line to load model
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import streamlit as st
|
3 |
|
|
|
|
|
4 |
def predict(img):
|
5 |
img = PILImage.create(img)
|
6 |
pred, pred_idx, probs = learn.predict(img)
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import streamlit as st
|
3 |
|
4 |
+
learn = load_learner('export.pkl')
|
5 |
+
|
6 |
def predict(img):
|
7 |
img = PILImage.create(img)
|
8 |
pred, pred_idx, probs = learn.predict(img)
|