Spaces:
Sleeping
Sleeping
req
Browse files- app.py +0 -3
- requirements.txt +3 -5
app.py
CHANGED
@@ -9,9 +9,6 @@ def classify_image(img):
|
|
9 |
pred, idx, probs = learn.predict(img)
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
12 |
-
|
13 |
-
examples = ['grizzly.jpg']
|
14 |
-
|
15 |
demo = gr.Interface(classify_image, gr.Image(), gr.Label())
|
16 |
if __name__ == "__main__":
|
17 |
demo.launch()
|
|
|
9 |
pred, idx, probs = learn.predict(img)
|
10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
11 |
|
|
|
|
|
|
|
12 |
demo = gr.Interface(classify_image, gr.Image(), gr.Label())
|
13 |
if __name__ == "__main__":
|
14 |
demo.launch()
|
requirements.txt
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
fastai
|
2 |
-
|
3 |
-
|
4 |
-
numpy
|
5 |
-
pandas <2.0.0
|
|
|
1 |
+
fastai == 2.7.14
|
2 |
+
fastapi == 0.110.0
|
3 |
+
fastcore == 1.5.29
|
|
|
|