Spaces:
Sleeping
Sleeping
Update app.py
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 |
snake_labels = (
|
9 |
"Monocled cobra",
|
10 |
"Egyptian cobra",
|
@@ -46,4 +42,4 @@ examples = [
|
|
46 |
]
|
47 |
|
48 |
iface = gr.Interface(fn=recognize_snake, inputs=image, outputs=label, examples=examples)
|
49 |
-
iface.launch(inline=False
|
|
|
1 |
from fastai.vision.all import load_learner
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
|
|
4 |
snake_labels = (
|
5 |
"Monocled cobra",
|
6 |
"Egyptian cobra",
|
|
|
42 |
]
|
43 |
|
44 |
iface = gr.Interface(fn=recognize_snake, inputs=image, outputs=label, examples=examples)
|
45 |
+
iface.launch(inline=False)
|