dielz commited on
Commit
0a22c12
·
verified ·
1 Parent(s): 1c2a810
Files changed (1) hide show
  1. app.py +2 -2
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", shape=(224, 224)),
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
- allow_flagging="never"
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)