Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Huggingface Tests
|
| 2 |
+
|
| 3 |
+
```bash
|
| 4 |
+
pip install -r requirements.txt
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
## Transformers
|
| 8 |
+
|
| 9 |
+
Install:<https://huggingface.co/docs/transformers/installation>
|
| 10 |
+
|
| 11 |
+
Validation:
|
| 12 |
+
|
| 13 |
+
```bash
|
| 14 |
+
python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I love you'))"
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## Hub
|
| 18 |
+
|
| 19 |
+
Login:
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
huggingface-cli login
|
| 23 |
+
```
|