Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
| 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=['
|
| 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)
|