Spaces:
Runtime error
Runtime error
Download app.py from alkzar90/croupier-creature-app: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/alkzar90/croupier-creature-app/resolve/main/app.py
- Command line
-
hf download hf://spaces/alkzar90/croupier-creature-app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/alkzar90/croupier-creature-app/resolve/main/app.py
1.1 kB
| 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() | |