Saim8250 commited on
Commit
57e85b9
·
1 Parent(s): 2076bf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
 
5
  def is_cat(x):returnx[0].isupper()
6
 
7
- learn=load_learner('model.pkl(2)')
8
 
9
  categories=('Normal','Pneumonia')
10
 
@@ -14,6 +14,6 @@ def classify_img(img):
14
 
15
  image =gr.inputs.Image(shape=(192,192))
16
  label =gr.outputs.Label()
17
- example=['dog.jpg']
18
  intf=gr.Interface(fn=classify_img,inputs=image,outputs=label,examples=example)
19
  intf.launch(inline=False)
 
4
 
5
  def is_cat(x):returnx[0].isupper()
6
 
7
+ learn=load_learner('model.pkl(1)')
8
 
9
  categories=('Normal','Pneumonia')
10
 
 
14
 
15
  image =gr.inputs.Image(shape=(192,192))
16
  label =gr.outputs.Label()
17
+ example=['Normal.jpg','pneumonia.jpg']
18
  intf=gr.Interface(fn=classify_img,inputs=image,outputs=label,examples=example)
19
  intf.launch(inline=False)