File size: 1,096 Bytes
b8245c4
9595a45
 
26c61ee
 
4ced05d
 
 
3483ed3
9595a45
 
 
6a06e20
d6f9b9a
 
9595a45
97e4e05
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import gradio as gr

os.system("wget -O crusader_peco_peco.png https://huggingface.co/alkzar90/croupier-creature-classifier/resolve/main/examples/crusader_peco_peco.png")
os.system("wget -O goblin_wow.png https://huggingface.co/alkzar90/croupier-creature-classifier/resolve/main/examples/goblin_wow.png")
os.system("wget -O dobby_harry_potter.jpg https://huggingface.co/alkzar90/croupier-creature-classifier/resolve/main/examples/dobby_harry_potter.jpg")
os.system("wget -O resident_evil_nemesis.jpeg https://huggingface.co/alkzar90/croupier-creature-classifier/resolve/main/examples/resident_evil_nemesis.jpeg")


iface = gr.Interface.load('alkzar90/croupier-creature-classifier',
                          src='models',
                          title='Bestiario',
                          description='Tu guía para identificar criaturas',
                          examples=[['crusader_peco_peco.png'], ['goblin_wow.png'], ['dobby_harry_potter.jpg'], ['resident_evil_nemesis.jpeg']],
                          cache_examples=False)


if __name__ == "__main__":
    iface.launch()