Updated the Inference script
Browse filesUpdated the inference script to add usage examples.
- inference.py +5 -0
inference.py
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
#!/usr/bin/env python3
|
|
|
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
from __future__ import annotations
|
| 4 |
|
| 5 |
import argparse
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
|
| 4 |
+
python inference.py --model-dir nllb-finetuned-de-en --input-file input.txt --src-lang eng_Latn --tgt-lang deu_Latn
|
| 5 |
+
OR
|
| 6 |
+
python inference.py --model-dir nllb-finetuned-de-en --input "Hello world" --src-lang eng_Latn --tgt-lang deu_Latn
|
| 7 |
+
"""
|
| 8 |
from __future__ import annotations
|
| 9 |
|
| 10 |
import argparse
|