Instructions to use PSSSSA/classifierctmodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PSSSSA/classifierctmodel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="PSSSSA/classifierctmodel")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("PSSSSA/classifierctmodel") model = AutoModelForSequenceClassification.from_pretrained("PSSSSA/classifierctmodel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 990 Bytes
44c7ba1 412e61a 44c7ba1 412e61a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
license: mit
library_name: transformers
pipeline_tag: text-classification
tags:
- medical
- text-classification
- distilbert
---
# Medical Text Classifier
This model classifies text as medical or non-medical using DistilBERT.
## Usage
```python
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
tokenizer = DistilBertTokenizer.from_pretrained("PSSSSA/classifierctmodel")
model = DistilBertForSequenceClassification.from_pretrained("PSSSSA/classifierctmodel")
```
### Step 3: Wait and Check Again
After updating the README:
1. **Wait 5-10 minutes** for Hugging Face to process
2. **Refresh your model page**
3. **Look for the inference widget**
### Step 4: Alternative - Test with curl
Try this curl command to see the raw response:
```bash
curl -X POST \
-H "Authorization: Bearer API" \
-H "Content-Type: application/json" \
-d '{"inputs": "I have a headache"}' \
https://api-inference.huggingface.co/models/PSSSSA/classifierctmodel
``` |