test
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def predict_image(img):
|
|
15 |
|
16 |
iface = gr.Interface(
|
17 |
fn=predict_image,
|
18 |
-
inputs=gr.
|
19 |
outputs="text",
|
20 |
title="X-ray Image Classifier",
|
21 |
description="Upload an X-ray image to classify it as 'Pneumonia' or 'Normal'."
|
|
|
15 |
|
16 |
iface = gr.Interface(
|
17 |
fn=predict_image,
|
18 |
+
inputs=gr.Image(type="pil"),
|
19 |
outputs="text",
|
20 |
title="X-ray Image Classifier",
|
21 |
description="Upload an X-ray image to classify it as 'Pneumonia' or 'Normal'."
|