Prasi21 commited on
Commit
e369657
1 Parent(s): 20013e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,8 +38,8 @@ def predict(image):
38
  # Set up the Gradio interface
39
  demo = gr.Interface(
40
  fn=predict,
41
- inputs=gr.inputs.Image(type="pil"), # Upload an image in PIL format
42
- outputs="text", # The output will be the generated caption
43
  title="Strep Throat Image Assessment",
44
  description="Upload an image of a throat and receive a medical assessment caption based on the model's output."
45
  )
 
38
  # Set up the Gradio interface
39
  demo = gr.Interface(
40
  fn=predict,
41
+ inputs=gr.Image(type="pil"), # Upload an image in PIL format
42
+ outputs=gr.Textbox(), # The output will be the generated caption
43
  title="Strep Throat Image Assessment",
44
  description="Upload an image of a throat and receive a medical assessment caption based on the model's output."
45
  )