drjk16 commited on
Commit
aa1e391
·
verified ·
1 Parent(s): a19e0a0

Updated the Inference script

Browse files

Updated the inference script to add usage examples.

Files changed (1) hide show
  1. 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