ronithsharmila commited on
Commit
bab77b5
·
verified ·
1 Parent(s): fdaab4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,11 +31,11 @@ def predict(image):
31
 
32
  return predicted_class
33
 
34
- # Define the Gradio interface
35
  iface = gr.Interface(
36
  fn=predict,
37
- inputs=gr.inputs.Image(type="numpy", label="Upload Image"),
38
- outputs=gr.outputs.Label(num_top_classes=1, label="Predicted Class"),
39
  title="Monkeypox Classifier",
40
  description="Upload an image of skin lesions to classify the disease."
41
  )
 
31
 
32
  return predicted_class
33
 
34
+ # Define the Gradio interface using the updated API
35
  iface = gr.Interface(
36
  fn=predict,
37
+ inputs=gr.Image(type="numpy", label="Upload Image"),
38
+ outputs=gr.Label(num_top_classes=1, label="Predicted Class"),
39
  title="Monkeypox Classifier",
40
  description="Upload an image of skin lesions to classify the disease."
41
  )