Spaces:
Running
Running
fix error
Browse files
app.py
CHANGED
@@ -36,13 +36,13 @@ example_images = [
|
|
36 |
# Gradio Interface
|
37 |
interface = gr.Interface(
|
38 |
fn=predict_image,
|
39 |
-
inputs=gr.Image(type="pil"
|
40 |
outputs=gr.Label(num_top_classes=1, label="Prediction"),
|
41 |
examples=example_images,
|
42 |
example_per_page=6,
|
43 |
title="Animals Classifier",
|
44 |
description="Upload an image of an animal, and the model will predict it.\n\n**Disclaimer:** This model is trained only on specific animal classes (butterfly, cats, cow, dogs, elephant, horse, monkey, sheep, spider, squirrel) and may not accurately predict animals outside these classes.",
|
45 |
-
|
46 |
)
|
47 |
|
48 |
interface.launch(share=True)
|
|
|
36 |
# Gradio Interface
|
37 |
interface = gr.Interface(
|
38 |
fn=predict_image,
|
39 |
+
inputs=gr.Image(type="pil"),
|
40 |
outputs=gr.Label(num_top_classes=1, label="Prediction"),
|
41 |
examples=example_images,
|
42 |
example_per_page=6,
|
43 |
title="Animals Classifier",
|
44 |
description="Upload an image of an animal, and the model will predict it.\n\n**Disclaimer:** This model is trained only on specific animal classes (butterfly, cats, cow, dogs, elephant, horse, monkey, sheep, spider, squirrel) and may not accurately predict animals outside these classes.",
|
45 |
+
image_mode="square"
|
46 |
)
|
47 |
|
48 |
interface.launch(share=True)
|