snow_leopard / app.py
panda1835's picture
Update app.py
5b85f1b
from ultralytics import YOLO
import gradio as gr
model = YOLO('best.pt')
def detect(image):
results = model(image) # predict on an image
res_plotted = results[0].plot()
return res_plotted
############################################################################
# ***************START OF YOUR INPUT***************
description="""
Loài báo tuyết (Snow leopards) là một trong những loài động vật nguỵ trang tuyệt vời nhất trên hành tinh. Với bộ lông trắng tuyệt đẹp và mảng đen trên tai, mũi và mắt, báo tuyết có khả năng hoàn hảo trong việc trở nên vô cùng khó nhận biết trên nền tuyết phủ. Khi nằm ngổn ngang giữa đám tuyết, chúng trở thành một phần hoàn toàn hài hòa với môi trường xung quanh.
---
Snow leopards, also known as the **“Grey Ghost”** and the **“Ghost of the Mountain”**, are one of the most remarkable camouflage species on the planet. With their stunning white fur and black markings on their ears, nose, and eyes, snow leopards possess the incredible ability to blend perfectly into a snowy landscape. When lying sprawled amidst the snow, they become an entirely harmonious part of their environment.
"""
title = """
Now you see me 👀
"""
examples = [['example1.jpg'], ['example2.jpg']]
# ***************END OF YOUR INPUT***************
############################################################################
gr.Interface(fn=detect,
inputs="image",
outputs="image",
live=True,
title=title,
description=description,
examples=examples).launch()