Merge branch 'main' of https://huggingface.co/spaces/atticusS/minimal
Browse files
app.py
CHANGED
|
@@ -1,11 +1,3 @@
|
|
| 1 |
-
# import gradio as gr
|
| 2 |
-
|
| 3 |
-
# def greet(name):
|
| 4 |
-
# return "Hello " + name + "!!"
|
| 5 |
-
|
| 6 |
-
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
-
# iface.launch()
|
| 8 |
-
|
| 9 |
from fastai.vision.all import *
|
| 10 |
import gradio as gr
|
| 11 |
|
|
@@ -24,4 +16,4 @@ label = gr.outputs.Label()
|
|
| 24 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 25 |
|
| 26 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 27 |
-
intf.launch(inline=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from fastai.vision.all import *
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
| 16 |
examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
|
| 17 |
|
| 18 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 19 |
+
intf.launch(inline=False)
|
cat.jpg
ADDED
|
dog.jpg
ADDED
|
dunno.jpg
ADDED
|
model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a36633ef0819100dc4c4468fad436566e35f72b5810193c4e480f1980d68c26
|
| 3 |
+
size 47063057
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastai
|
| 2 |
+
gradio
|