Spaces:
Runtime error
Runtime error
Commit
·
9af033b
1
Parent(s):
df0f864
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
from fastai.vision.all import *
|
3 |
import gradio as gr
|
4 |
|
5 |
-
learn = load_learner('
|
6 |
categories = ('primary', 'clear', 'agriculture', 'road', 'water', 'partly_cloudly', 'cultivation', 'habitation', 'haze', 'cloudy', 'bare_ground', 'selective_logging', 'artisinal_mine', 'blooming', 'slash_burn', 'blow_down', 'conventional_mine')
|
7 |
def classify_image(img):
|
8 |
pred, idx, probs = learn.predict(img)
|
|
|
2 |
from fastai.vision.all import *
|
3 |
import gradio as gr
|
4 |
|
5 |
+
learn = load_learner('export.pkl')
|
6 |
categories = ('primary', 'clear', 'agriculture', 'road', 'water', 'partly_cloudly', 'cultivation', 'habitation', 'haze', 'cloudy', 'bare_ground', 'selective_logging', 'artisinal_mine', 'blooming', 'slash_burn', 'blow_down', 'conventional_mine')
|
7 |
def classify_image(img):
|
8 |
pred, idx, probs = learn.predict(img)
|