Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,56 +1,27 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
My first Hugging Face model repo (uploaded from Windows).---
|
| 4 |
-
|
| 5 |
language: en
|
| 6 |
-
|
| 7 |
license: apache-2.0
|
| 8 |
-
|
| 9 |
tags:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
library\_name: transformers
|
| 16 |
-
|
| 17 |
-
pipeline\_tag: text-classification
|
| 18 |
-
|
| 19 |
-
model\_name: my-first-model
|
| 20 |
-
|
| 21 |
---
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
\# my-first-model
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
This is my first Hugging Face model.
|
| 30 |
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
\## Model Description
|
| 34 |
-
|
| 35 |
-
This model is based on \*\*DistilBERT\*\* fine-tuned for \*\*sentiment analysis\*\*.
|
| 36 |
-
|
| 37 |
-
It predicts whether a sentence is \*\*positive\*\* or \*\*negative\*\*.
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
\## How to use
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
```python
|
| 46 |
|
| 47 |
from transformers import pipeline
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
classifier = pipeline("sentiment-analysis", model="ganesh435/my-first-model")
|
| 52 |
-
|
| 53 |
classifier("I love learning AI with Hugging Face!")
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
|
|
|
| 1 |
+
---
|
|
|
|
|
|
|
|
|
|
| 2 |
language: en
|
|
|
|
| 3 |
license: apache-2.0
|
|
|
|
| 4 |
tags:
|
| 5 |
+
- text-classification
|
| 6 |
+
- sentiment-analysis
|
| 7 |
+
library_name: transformers
|
| 8 |
+
pipeline_tag: text-classification
|
| 9 |
+
model_name: my-first-model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# my-first-model
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
This is my first Hugging Face model.
|
| 15 |
|
| 16 |
+
## Model Description
|
| 17 |
+
This model is based on DistilBERT and performs sentiment analysis.
|
| 18 |
|
| 19 |
+
## How to use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
from transformers import pipeline
|
| 22 |
|
|
|
|
|
|
|
| 23 |
classifier = pipeline("sentiment-analysis", model="ganesh435/my-first-model")
|
|
|
|
| 24 |
classifier("I love learning AI with Hugging Face!")
|
| 25 |
|
| 26 |
+
## Notes
|
| 27 |
+
This model was uploaded for learning purposes.
|