Spaces:
Runtime error
Runtime error
bobalbrecht
commited on
Commit
Β·
363bdc5
1
Parent(s):
5514c9b
- README.md +1 -1
- app.py +21 -0
- images/Altocumulus.jpg +3 -0
- images/Altostratus.jpg +3 -0
- images/Cirrocumulus.jpg +3 -0
- images/Cirrostratus.jpg +3 -0
- images/Cirrus.jpg +3 -0
- images/Cumulonimbus.jpg +3 -0
- images/Cumulus.jpg +3 -0
- images/Lenticular.jpg +3 -0
- images/Nimbostratus.jpg +3 -0
- images/Stratocumulus.jpg +3 -0
- images/Stratus.jpg +3 -0
- models/README.MD +0 -0
- models/cloudmodel.pkl +3 -0
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: green
|
|
|
1 |
---
|
2 |
+
title: Scratchpad
|
3 |
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: green
|
app.py
CHANGED
@@ -10,6 +10,27 @@ __all__ = ['is_cat', 'learn', 'classify_image', 'categories', 'image', 'label',
|
|
10 |
|
11 |
import gradio as gr
|
12 |
from fastai.vision.all import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
def is_cat(x): return x[0].isupper()
|
|
|
10 |
|
11 |
import gradio as gr
|
12 |
from fastai.vision.all import *
|
13 |
+
from pathlib import Path
|
14 |
+
|
15 |
+
model_path = Path('models')
|
16 |
+
image_path = Path('images')
|
17 |
+
|
18 |
+
cloud_categories = (
|
19 |
+
'Cirrus',
|
20 |
+
'Cirrostratus',
|
21 |
+
'Cirrocumulus',
|
22 |
+
'Altostratus',
|
23 |
+
'Altocumulus',
|
24 |
+
'Stratus',
|
25 |
+
'Stratocumulus',
|
26 |
+
'Nimbostratus',
|
27 |
+
'Cumulus',
|
28 |
+
'Cumulonimbus',
|
29 |
+
'Lenticular'
|
30 |
+
)
|
31 |
+
|
32 |
+
cloud_examples = [image_path / f"{c}.jpg" for c in cloud_categories]
|
33 |
+
cloud_examples
|
34 |
|
35 |
|
36 |
def is_cat(x): return x[0].isupper()
|
images/Altocumulus.jpg
ADDED
Git LFS Details
|
images/Altostratus.jpg
ADDED
Git LFS Details
|
images/Cirrocumulus.jpg
ADDED
Git LFS Details
|
images/Cirrostratus.jpg
ADDED
Git LFS Details
|
images/Cirrus.jpg
ADDED
Git LFS Details
|
images/Cumulonimbus.jpg
ADDED
Git LFS Details
|
images/Cumulus.jpg
ADDED
Git LFS Details
|
images/Lenticular.jpg
ADDED
Git LFS Details
|
images/Nimbostratus.jpg
ADDED
Git LFS Details
|
images/Stratocumulus.jpg
ADDED
Git LFS Details
|
images/Stratus.jpg
ADDED
Git LFS Details
|
models/README.MD
ADDED
File without changes
|
models/cloudmodel.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:406827942d140e486ec8b53afd3f0376d34d9045dbae151e7af1d22442448ff1
|
3 |
+
size 102978463
|