Spaces:
Sleeping
Sleeping
Cooper Richason
commited on
Commit
•
d404b5f
1
Parent(s):
a9dfa5c
update theme and aadd wish example
Browse files
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -3,10 +3,6 @@
|
|
3 |
# %% auto 0
|
4 |
__all__ = ['learn', 'categories', 'examples', 'demo', 'classify_image']
|
5 |
|
6 |
-
# %% ../exporter.ipynb 1
|
7 |
-
from fastai.vision.all import *
|
8 |
-
import gradio as gr
|
9 |
-
|
10 |
# %% ../exporter.ipynb 3
|
11 |
learn = load_learner('movie_predictions.pkl')
|
12 |
|
@@ -18,11 +14,11 @@ def classify_image(img):
|
|
18 |
return dict(zip(categories, map(float,probs)))
|
19 |
|
20 |
# %% ../exporter.ipynb 7
|
21 |
-
examples = ['barbie.jpg','hangover.jpg','theshinning.jpg','freddy.jpg']
|
22 |
|
23 |
demo = gr.Interface(classify_image, gr.Image(), gr.Label(),
|
24 |
examples=examples,
|
25 |
-
title = "Fun or RUN",
|
26 |
description = "Image classifier that predicts a movie's genre based on the movie poster!",
|
27 |
-
theme
|
28 |
demo.launch()
|
|
|
3 |
# %% auto 0
|
4 |
__all__ = ['learn', 'categories', 'examples', 'demo', 'classify_image']
|
5 |
|
|
|
|
|
|
|
|
|
6 |
# %% ../exporter.ipynb 3
|
7 |
learn = load_learner('movie_predictions.pkl')
|
8 |
|
|
|
14 |
return dict(zip(categories, map(float,probs)))
|
15 |
|
16 |
# %% ../exporter.ipynb 7
|
17 |
+
examples = ['barbie.jpg','hangover.jpg','theshinning.jpg','freddy.jpg','wish.jpg']
|
18 |
|
19 |
demo = gr.Interface(classify_image, gr.Image(), gr.Label(),
|
20 |
examples=examples,
|
21 |
+
title = "Fun or RUN?",
|
22 |
description = "Image classifier that predicts a movie's genre based on the movie poster!",
|
23 |
+
theme='gradio/soft')
|
24 |
demo.launch()
|
wish.jpg
ADDED