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 +2 -1
handler.py
CHANGED
|
@@ -286,7 +286,8 @@ def _run_align_script(bo_fn, en_fn, output_dir):
|
|
| 286 |
if output_fn.exists() and output_fn.is_file():
|
| 287 |
content = output_fn.read_text()
|
| 288 |
if content:
|
| 289 |
-
logging.info(f"
|
|
|
|
| 290 |
else:
|
| 291 |
logging.warning(f"The file {output_fn} is empty.")
|
| 292 |
else:
|
|
|
|
| 286 |
if output_fn.exists() and output_fn.is_file():
|
| 287 |
content = output_fn.read_text()
|
| 288 |
if content:
|
| 289 |
+
logging.info(f"Length of content in bo.tx.clean{output_fn}: {len(content)}")
|
| 290 |
+
logging.info(f"Contents of {output}: {output.stdout}")
|
| 291 |
else:
|
| 292 |
logging.warning(f"The file {output_fn} is empty.")
|
| 293 |
else:
|