yolac commited on
Commit
641df71
·
verified ·
1 Parent(s): bcf00a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Image(type="pil"),
85
- outputs="text",
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
  )