Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 42 |
-
outputs=
|
| 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 |
)
|