requirements.txt
Browse files- app.py +4 -2
- requirements.txt +2 -0
app.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
|
|
|
|
|
2 |
from fastai.vision.all import *
|
3 |
import gradio as gr
|
4 |
|
@@ -15,8 +17,8 @@ def classify_image(img):
|
|
15 |
pred,idx,probs = learn.predict(img)
|
16 |
return dict(zip(categories, map(float,probs)))
|
17 |
|
18 |
-
image = gr.
|
19 |
-
label = gr.
|
20 |
examples = ["pepe.jpg"]
|
21 |
|
22 |
|
|
|
1 |
|
2 |
+
__all__ = ["label_func", "learn", "classify_image", "categories", "image", "label", "examples", "demo"]
|
3 |
+
|
4 |
from fastai.vision.all import *
|
5 |
import gradio as gr
|
6 |
|
|
|
17 |
pred,idx,probs = learn.predict(img)
|
18 |
return dict(zip(categories, map(float,probs)))
|
19 |
|
20 |
+
image = gr.Image(shape=(192, 192))
|
21 |
+
label = gr.Label()
|
22 |
examples = ["pepe.jpg"]
|
23 |
|
24 |
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
fastai
|
2 |
+
gradio
|