Update README.md
Browse files
README.md
CHANGED
|
@@ -1,50 +1,30 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
-
-
|
| 5 |
-
language: en
|
| 6 |
-
tags:
|
| 7 |
-
- text-classification
|
| 8 |
-
- eou-detection
|
| 9 |
-
- conversation
|
| 10 |
-
pipeline_tag: text-classification
|
| 11 |
-
inference: true
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
# Turnsense: Turn-Detector Model
|
| 15 |
-
|
| 16 |
-
A lightweight end-of-utterance (EOU) detection model fine-tuned on SmolLM2-135M, optimized for Raspberry Pi and low-power devices.
|
| 17 |
-
|
| 18 |
-
## Model Details
|
| 19 |
-
- **Task:** Text Classification (End-of-User-Turn Detection)
|
| 20 |
-
- **Type:** llama
|
| 21 |
-
- **Last Updated:** 2025-03-13 04:24:17
|
| 22 |
-
- **Updated By:** latishab
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
classifier = pipeline("text-classification", model="latishab/turnsense")
|
| 32 |
-
text = "Hello, how are you?"
|
| 33 |
-
result = classifier(text)
|
| 34 |
-
print(result)
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
]
|
| 40 |
-
result = classifier(messages)
|
| 41 |
-
print(result)
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
print(results)
|
| 50 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- HuggingFaceTB/SmolLM2-135M-Instruct
|
| 7 |
+
pipeline_tag: text-classification
|
| 8 |
---
|
| 9 |
+
# Turnsense: Turn-Detector Model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
A lightweight end-of-utterance (EOU) detection model fine-tuned on SmolLM2-135M, optimized for Raspberry Pi and low-power devices.
|
| 12 |
|
| 13 |
+
## Model Details
|
| 14 |
+
- **Task:** Text Classification (End-of-User-Turn Detection)
|
| 15 |
+
- **Type:** llama
|
| 16 |
+
- **Last Updated:** 2025-03-13 04:24:17
|
| 17 |
+
- **Updated By:** latishab
|
| 18 |
|
| 19 |
+
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
### With Transformers Pipeline
|
| 22 |
+
```python
|
| 23 |
+
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
# Example 1: Basic usage
|
| 26 |
+
classifier = pipeline("text-classification", model="latishab/turnsense")
|
| 27 |
+
text = "Hello, how are you?"
|
| 28 |
+
result = classifier(text)
|
| 29 |
+
print(result)
|
| 30 |
+
```
|
|
|
|
|
|