Last commit
Browse files
.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
|
| 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()
|