Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from fastai.vision.all import *
|
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
-
learn = load_learner('
|
7 |
categories = ('Andalusite', 'Argillaceous_siltstone', 'Bioturbated_siltstone', 'Massive_calcareous_siltstone', 'Massive_calcite-cemented_siltstone', 'Porous_calcareous_siltstone', 'actinolite', 'biotite', 'carbonate', 'coal', 'debris_rock', 'granite', 'hornblende', 'olivine', 'oolites', 'plagioclase', 'pyroxene', 'sandstone', 'staurolite ')
|
8 |
|
9 |
def classify_image(img):
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
|
6 |
+
learn = load_learner('petronet_101.pth')
|
7 |
categories = ('Andalusite', 'Argillaceous_siltstone', 'Bioturbated_siltstone', 'Massive_calcareous_siltstone', 'Massive_calcite-cemented_siltstone', 'Porous_calcareous_siltstone', 'actinolite', 'biotite', 'carbonate', 'coal', 'debris_rock', 'granite', 'hornblende', 'olivine', 'oolites', 'plagioclase', 'pyroxene', 'sandstone', 'staurolite ')
|
8 |
|
9 |
def classify_image(img):
|