Spaces:
Sleeping
Sleeping
busebaser
commited on
Commit
·
4a7d132
1
Parent(s):
a37bcd0
Fix: Updated Gradio syntax for inputs and outputs
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def predict(image):
|
|
17 |
# Create the Gradio web interface
|
18 |
interface = gr.Interface(
|
19 |
fn=predict,
|
20 |
-
inputs=gr.
|
21 |
-
outputs=
|
22 |
title="Cat vs Dog Classifier",
|
23 |
description="Upload an image of a cat or dog and let the model classify it!"
|
24 |
)
|
|
|
17 |
# Create the Gradio web interface
|
18 |
interface = gr.Interface(
|
19 |
fn=predict,
|
20 |
+
inputs=gr.Image(type="pil"),
|
21 |
+
outputs=gr.Textbox(),
|
22 |
title="Cat vs Dog Classifier",
|
23 |
description="Upload an image of a cat or dog and let the model classify it!"
|
24 |
)
|