Instructions to use openpecha/aligner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openpecha/aligner with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("openpecha/aligner") model = AutoModelForSeq2SeqLM.from_pretrained("openpecha/aligner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
|
@@ -266,5 +266,6 @@ class EndpointHandler():
|
|
| 266 |
Return:
|
| 267 |
A :obj:`list`:. The list contains the embeddings of the inference inputs
|
| 268 |
"""
|
|
|
|
| 269 |
return align(data)
|
| 270 |
|
|
|
|
| 266 |
Return:
|
| 267 |
A :obj:`list`:. The list contains the embeddings of the inference inputs
|
| 268 |
"""
|
| 269 |
+
data = data.pop("inputs",data)
|
| 270 |
return align(data)
|
| 271 |
|