ursulacst commited on
Commit
7ef5b2a
·
1 Parent(s): e89424c

Last commit

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +2 -2
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -1,5 +1,5 @@
1
- from fastai.vision.all import *
2
  import gradio as gr
 
3
  import skimage
4
 
5
  learn = load_learner('model.pkl')
@@ -10,7 +10,7 @@ def classify_image(img):
10
  pred,idx,probs = learn.predict(img)
11
  return dict(zip(categories, map(float,probs)))
12
 
13
- title = "Ultrasound tumor classifier"
14
  description = "An ultrasound tumor classifier trained on a small dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
15
  image = gr.inputs.Image()
16
  label = gr.outputs.Label()
 
 
1
  import gradio as gr
2
+ from fastai.vision.all import *
3
  import skimage
4
 
5
  learn = load_learner('model.pkl')
 
10
  pred,idx,probs = learn.predict(img)
11
  return dict(zip(categories, map(float,probs)))
12
 
13
+ title = "Ultrasound Tumor Classifier"
14
  description = "An ultrasound tumor classifier trained on a small dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
15
  image = gr.inputs.Image()
16
  label = gr.outputs.Label()