Erick Garcia Espinosa commited on
Commit
dcda142
·
1 Parent(s): 0781ea9

improvements

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -65,10 +65,7 @@ def predict_image(image_path):
65
  # Create the Gradio interface
66
  iface = gr.Interface(
67
  fn=predict_image,
68
- inputs=[
69
- gr.Image(type="filepath", label="Upload an image or take a picture", source="upload"),
70
- gr.Image(type="pil", label="Take a Pic", source="webcam")
71
- ],
72
  outputs=[gr.Textbox(label="Prediction"), gr.Image(label="Prediction Probabilities")],
73
  title="Skin Lesion Image Classification",
74
  description="Upload an image of a skin lesion to get a prediction. This tool helps to classify images of skin lesions into the following categories: Measles, Chickenpox, Herpes, Melanomas, and Monkeypox. Check out the dataset and paper at: [Link to Example 1](#), [Link to Example 2](#)",
 
65
  # Create the Gradio interface
66
  iface = gr.Interface(
67
  fn=predict_image,
68
+ inputs=gr.Image(type="filepath", label="Upload an image"),
 
 
 
69
  outputs=[gr.Textbox(label="Prediction"), gr.Image(label="Prediction Probabilities")],
70
  title="Skin Lesion Image Classification",
71
  description="Upload an image of a skin lesion to get a prediction. This tool helps to classify images of skin lesions into the following categories: Measles, Chickenpox, Herpes, Melanomas, and Monkeypox. Check out the dataset and paper at: [Link to Example 1](#), [Link to Example 2](#)",