Download app.py from mmcw23-p/Project: direct link, hf CLI and curl.
- Browser
- Download file 159 Bytes
-
https://huggingface.co/spaces/mmcw23-p/Project/resolve/main/app.py
- Command line
-
hf download hf://spaces/mmcw23-p/Project/app.py
-
curl -L -o app.py https://huggingface.co/spaces/mmcw23-p/Project/resolve/main/app.py
159 Bytes
| from transformers import pipeline | |
| import torch | |
| import torch.nn.functional as F | |
| classifier = pipeline("sentiment-analysis") | |
| res= classifier("test") | |
| print(res) |