Spaces:
Runtime error
Runtime error
Tolga
commited on
Commit
·
b4f5557
1
Parent(s):
d3fa852
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,18 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
learn = load_learner('model.pkl')
|
5 |
|
6 |
image = gr.inputs.Image(shape=(128, 128))
|
@@ -15,6 +27,8 @@ def classify_img(img):
|
|
15 |
|
16 |
interface = gr.Interface(fn=classify_img,
|
17 |
inputs=image,
|
|
|
|
|
18 |
outputs=label,
|
19 |
examples=examples)
|
20 |
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
+
title = 'Sea Animals Classification'
|
5 |
+
description = '''
|
6 |
+
With this Spaces, you can classify 19 different sea animals with uploading their pictures or using examples given below.
|
7 |
+
|
8 |
+
Here are the list of animals into this model. 'corals','crabs','dolphin','eel','jelly fish','lobster','nudibranchs','octopus','penguin','puffers','sea rays','sea urchins','seahorse','seal','sharks','squid','starfish','turtle_tortoise','whale'
|
9 |
+
|
10 |
+
Source of training dataset : https://www.kaggle.com/datasets/vencerlanz09/sea-animals-image-dataste
|
11 |
+
You can gather information about how this model is trained : https://www.kaggle.com/code/tolgakurtulus/sea-animals-classification-with-fastai
|
12 |
+
|
13 |
+
Enjoy it! 🐟
|
14 |
+
'''
|
15 |
+
|
16 |
learn = load_learner('model.pkl')
|
17 |
|
18 |
image = gr.inputs.Image(shape=(128, 128))
|
|
|
27 |
|
28 |
interface = gr.Interface(fn=classify_img,
|
29 |
inputs=image,
|
30 |
+
title=title,
|
31 |
+
description=description,
|
32 |
outputs=label,
|
33 |
examples=examples)
|
34 |
|