Spaces:
Sleeping
Sleeping
Commit
·
49017a2
1
Parent(s):
64738f0
initial version
Browse files- app.py +7 -0
- examples/negative001.jpg +0 -0
- examples/negative002.jpg +0 -0
- images/00021adfb725ed.jpg +0 -0
- images/000be9acf46619.jpg +0 -0
- images/LICENSE.txt +7 -0
- images/beluga_seine.png +0 -0
- images/negative001.jpg +0 -0
- images/negative002.jpg +0 -0
- images/subdir/negative001.jpg +0 -0
- images/subdir/negative002.jpg +0 -0
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def image_classifier(inp):
|
4 |
+
return {'cat': 0.3, 'dog': 0.7}
|
5 |
+
|
6 |
+
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label", examples="images/subdir")
|
7 |
+
demo.launch()
|
examples/negative001.jpg
ADDED
![]() |
examples/negative002.jpg
ADDED
![]() |
images/00021adfb725ed.jpg
ADDED
![]() |
images/000be9acf46619.jpg
ADDED
![]() |
images/LICENSE.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Images in this folder are licensed under the Creative Commons Attribution-Share Alike 4.0 International license:
|
2 |
+
https://creativecommons.org/licenses/by-sa/4.0/deed.en
|
3 |
+
|
4 |
+
Attribution/Origin:
|
5 |
+
negative001.jpg https://upload.wikimedia.org/wikipedia/commons/2/2b/Whale_Watching_in_Gloucester%2C_Massachusetts_5.jpg
|
6 |
+
negative002.jpg https://upload.wikimedia.org/wikipedia/commons/c/c5/Common_Dolphin.jpg
|
7 |
+
|
images/beluga_seine.png
ADDED
![]() |
images/negative001.jpg
ADDED
![]() |
images/negative002.jpg
ADDED
![]() |
images/subdir/negative001.jpg
ADDED
![]() |
images/subdir/negative002.jpg
ADDED
![]() |