Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,8 @@ for dirname, _, filenames in os.walk('/kaggle/input'):
|
|
| 19 |
|
| 20 |
|
| 21 |
import gradio as gr
|
| 22 |
-
|
|
|
|
| 23 |
def classify_image(img):
|
| 24 |
pred,idx,probs = learn.predict(img)
|
| 25 |
return dict(zip(categories, map(float,probs)))
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
import gradio as gr
|
| 22 |
+
from fastai.vision.all import*
|
| 23 |
+
categories = ('Healthy Cell', 'Leukemia', 'Sickle Cell', 'Thalassemia')
|
| 24 |
def classify_image(img):
|
| 25 |
pred,idx,probs = learn.predict(img)
|
| 26 |
return dict(zip(categories, map(float,probs)))
|