Update app.py
Browse files
app.py
CHANGED
@@ -81,8 +81,8 @@ def predict(image):
|
|
81 |
# Set up Gradio interface
|
82 |
interface = gr.Interface(
|
83 |
fn=predict,
|
84 |
-
inputs=gr.
|
85 |
-
outputs="
|
86 |
title="Bacterial Morphology Classification",
|
87 |
description="Upload an image of bacteria to classify it as cocci, bacilli, or spirilla.",
|
88 |
)
|
|
|
81 |
# Set up Gradio interface
|
82 |
interface = gr.Interface(
|
83 |
fn=predict,
|
84 |
+
inputs=gr.Image(type="pil"),
|
85 |
+
outputs=gr.Text(label="Prediction"),
|
86 |
title="Bacterial Morphology Classification",
|
87 |
description="Upload an image of bacteria to classify it as cocci, bacilli, or spirilla.",
|
88 |
)
|