LSTM Text Classification Model
This model is an LSTM-based text classification model implemented in TensorFlow.
Model Information
- Model Type: TensorFlow LSTM
- Task: Text Classification
Usage
You can use this model to classify text inputs into categories.
Example Usage
import requests
API_URL = "https://api-inference.huggingface.co/models/<your-username>/<model-name>"
headers = {"Authorization": "Bearer <your-hugging-face-api-key>"}
data = {"text": "This is a sample news text."}
response = requests.post(API_URL, headers=headers, json=data)
print(response.json())
Inference API (serverless) does not yet support tensorflow models for this pipeline type.