Spaces:
Runtime error
Runtime error
updated description
Browse files- app.py +5 -1
- docs/description.md +7 -0
- docs/title.txt +1 -0
- example6.jpg +0 -0
- example7.JPG +0 -0
app.py
CHANGED
@@ -4,6 +4,9 @@ __all__ = ['learn', 'classify_image', 'categories',
|
|
4 |
import gradio as gr
|
5 |
from fastai.vision.all import *
|
6 |
|
|
|
|
|
|
|
7 |
learn = load_learner('model.pkl')
|
8 |
|
9 |
categories = ('airbaby', 'airchair', 'airflare', 'headspin', 'hollow back')
|
@@ -17,7 +20,8 @@ def classify_image(img):
|
|
17 |
image = gr.inputs.Image(shape=(192, 192))
|
18 |
label = gr.outputs.Label()
|
19 |
examples = ['example1.jpg', 'example2.jpg',
|
20 |
-
'example3.jpg', 'example4.jpg',
|
|
|
21 |
|
22 |
intf = gr.Interface(fn=classify_image, inputs=image,
|
23 |
outputs=label, examples=examples)
|
|
|
4 |
import gradio as gr
|
5 |
from fastai.vision.all import *
|
6 |
|
7 |
+
TITLE = Path("docs/title.txt").read_text()
|
8 |
+
DESCRIPTION = Path("docs/description.md").read_text()
|
9 |
+
|
10 |
learn = load_learner('model.pkl')
|
11 |
|
12 |
categories = ('airbaby', 'airchair', 'airflare', 'headspin', 'hollow back')
|
|
|
20 |
image = gr.inputs.Image(shape=(192, 192))
|
21 |
label = gr.outputs.Label()
|
22 |
examples = ['example1.jpg', 'example2.jpg',
|
23 |
+
'example3.jpg', 'example4.jpg',
|
24 |
+
'example5.jpg', 'example6.jpg', 'example7.JPG']
|
25 |
|
26 |
intf = gr.Interface(fn=classify_image, inputs=image,
|
27 |
outputs=label, examples=examples)
|
docs/description.md
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This space classifies breakdance (more accurately, bboying or breaking) freezes based on the input photo.
|
2 |
+
|
3 |
+
The model currently recognises two static 3 static freezes: airchair, airbaby, and hollowback
|
4 |
+
|
5 |
+
The model also recognises snapshots of two dynamic movements: the airflare and headspin
|
6 |
+
|
7 |
+
Note: Results may vary depending on the dancer's form and if there are variations in leg placement (in the context of dance, variations are inevitable in pursuit of creativity or as the result of difference in flexibility).
|
docs/title.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Breakdance (Bboying/Breaking) Freeze/Pose Classifer
|
example6.jpg
ADDED
example7.JPG
ADDED