Spaces:
Sleeping
Sleeping
Commit ·
7ce064d
1
Parent(s): 7bbdc21
version updated
Browse files- app.py +5 -5
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
from fastai.vision.all import *
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
import os
|
| 5 |
-
os.system("pip uninstall -y gradio")
|
| 6 |
-
os.system("pip install gradio==3.16.0")
|
| 7 |
|
| 8 |
# import pathlib
|
| 9 |
# temp = pathlib.PosixPath
|
|
@@ -17,8 +17,8 @@ def recognize_image(image):
|
|
| 17 |
pred, id, probs = model.predict(image)
|
| 18 |
return dict(zip(labels, map(float, probs)))
|
| 19 |
|
| 20 |
-
image = gr.
|
| 21 |
-
output_labels = gr.
|
| 22 |
|
| 23 |
examples = [
|
| 24 |
'examples/unknown_1.jpg',
|
|
|
|
| 1 |
from fastai.vision.all import *
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
# import os
|
| 5 |
+
# os.system("pip uninstall -y gradio")
|
| 6 |
+
# os.system("pip install gradio==3.16.0")
|
| 7 |
|
| 8 |
# import pathlib
|
| 9 |
# temp = pathlib.PosixPath
|
|
|
|
| 17 |
pred, id, probs = model.predict(image)
|
| 18 |
return dict(zip(labels, map(float, probs)))
|
| 19 |
|
| 20 |
+
image = gr.Image()
|
| 21 |
+
output_labels = gr.Label()
|
| 22 |
|
| 23 |
examples = [
|
| 24 |
'examples/unknown_1.jpg',
|
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
fastai==2.7.13
|
| 2 |
-
gradio==
|
|
|
|
| 1 |
fastai==2.7.13
|
| 2 |
+
gradio==4.7.1
|