Spaces:
Runtime error
Runtime error
Bimurat Mukhtar
commited on
Commit
·
c1b0c67
1
Parent(s):
a334ea8
added model code
Browse files- app.py +5 -2
- mask_model.ipynb +0 -0
- requirements.txt +2 -0
app.py
CHANGED
@@ -12,5 +12,8 @@ def predict(img):
|
|
12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
13 |
|
14 |
|
15 |
-
gr.Interface(
|
16 |
-
|
|
|
|
|
|
|
|
12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
13 |
|
14 |
|
15 |
+
gr.Interface(
|
16 |
+
fn=predict,
|
17 |
+
inputs=gr.inputs.Image(shape=(512, 512)),
|
18 |
+
outputs=gr.outputs.Label(num_top_classes=3)
|
19 |
+
).launch(share=True)
|
mask_model.ipynb
ADDED
The diff for this file is too large to render.
See raw diff
|
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio~=3.19.1
|
2 |
+
fastai~=2.7.11
|