Spaces:
Sleeping
Sleeping
Commit ·
7e6cfcb
1
Parent(s): c4eab92
remove share
Browse files
app.py
CHANGED
|
@@ -1,10 +1,6 @@
|
|
| 1 |
from fastai.vision.all import load_learner
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
# import pathlib
|
| 5 |
-
# temp = pathlib.PosixPath
|
| 6 |
-
# pathlib.PosixPath = pathlib.WindowsPath
|
| 7 |
-
|
| 8 |
cap_labels = (
|
| 9 |
'balaclava cap',
|
| 10 |
'baseball cap',
|
|
@@ -44,4 +40,4 @@ examples = [
|
|
| 44 |
]
|
| 45 |
|
| 46 |
iface = gr.Interface(fn=recognize_image, inputs=image, outputs=label, examples=examples)
|
| 47 |
-
iface.launch(
|
|
|
|
| 1 |
from fastai.vision.all import load_learner
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
cap_labels = (
|
| 5 |
'balaclava cap',
|
| 6 |
'baseball cap',
|
|
|
|
| 40 |
]
|
| 41 |
|
| 42 |
iface = gr.Interface(fn=recognize_image, inputs=image, outputs=label, examples=examples)
|
| 43 |
+
iface.launch()
|