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:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("openpecha/aligner") model = AutoModelForSeq2SeqLM.from_pretrained("openpecha/aligner") - Notebooks
- Google Colab
- Kaggle
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -117,7 +117,7 @@ def convert_raw_align_to_tm(align_fn: Path, tm_path: Path):
|
|
| 117 |
# Read and log the content of the file
|
| 118 |
content = fn.read_text()
|
| 119 |
if content:
|
| 120 |
-
logging.info(f"Content of {fn.name}: {content
|
| 121 |
else:
|
| 122 |
logging.warning(f"File is empty: {fn}")
|
| 123 |
|
|
|
|
| 117 |
# Read and log the content of the file
|
| 118 |
content = fn.read_text()
|
| 119 |
if content:
|
| 120 |
+
logging.info(f"Content length of {fn.name}: {len(content)} characters") # Log first 100 characters
|
| 121 |
else:
|
| 122 |
logging.warning(f"File is empty: {fn}")
|
| 123 |
|