File size: 1,683 Bytes
e653bf4
 
 
701527c
e653bf4
 
 
 
 
 
 
 
 
 
 
 
5b85f1b
 
e3c68f8
 
5b85f1b
e653bf4
 
 
 
 
e3c68f8
e653bf4
 
 
e3c68f8
e653bf4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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()