Download app.py from MovieRec/App: direct link, hf CLI and curl.
- Browser
- Download file 172 Bytes
-
https://huggingface.co/spaces/MovieRec/App/resolve/main/app.py
- Command line
-
hf download hf://spaces/MovieRec/App/app.py
-
curl -L -o app.py https://huggingface.co/spaces/MovieRec/App/resolve/main/app.py
172 Bytes
| import gradio as gr | |
| def image_classifier(inp): | |
| return {'cat': 0.3, 'dog': 0.7} | |
| demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label") | |
| demo.launch() |