Spaces:
Configuration error
Configuration error
Download testing.py from Scrapyard-Brampton/Testing: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/spaces/Scrapyard-Brampton/Testing/resolve/main/testing.py
- Command line
-
hf download hf://spaces/Scrapyard-Brampton/Testing/testing.py
-
curl -L -o testing.py https://huggingface.co/spaces/Scrapyard-Brampton/Testing/resolve/main/testing.py
314 Bytes
| # Use a pipeline as a high-level helper | |
| from transformers import pipeline | |
| # Initialize the pipeline | |
| pipe = pipeline("text-classification", model="FedericoDamboreana/chained_question_classification_es") | |
| sentence1 = 'how are you doing' | |
| sentence2 = 'that dog is black' | |
| print(pipe(sentence1)) | |
| print(pipe(sentence2)) | |