archietram commited on
Commit
a4dbeee
1 Parent(s): 8c3cefe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,13 +1,12 @@
1
  from fastai.vision.all import *
2
  import gradio as gr
3
 
 
4
 
5
  learn = load_learner("export.pkl")
6
 
7
  categories = ("Diabetic Retinopathy", "No Diabetic Retinopathy")
8
 
9
- def get_disease(): return _
10
-
11
  def classify_image(img):
12
  pred,idx,probs = learn.predict(img)
13
  return dict(zip(categories, map(float,probs)))
 
1
  from fastai.vision.all import *
2
  import gradio as gr
3
 
4
+ def get_disease(): return _
5
 
6
  learn = load_learner("export.pkl")
7
 
8
  categories = ("Diabetic Retinopathy", "No Diabetic Retinopathy")
9
 
 
 
10
  def classify_image(img):
11
  pred,idx,probs = learn.predict(img)
12
  return dict(zip(categories, map(float,probs)))