Bimurat Mukhtar commited on
Commit
c1b0c67
1 Parent(s): a334ea8

added model code

Browse files
Files changed (3) hide show
  1. app.py +5 -2
  2. mask_model.ipynb +0 -0
  3. 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(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(
16
- share=True)
 
 
 
 
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