alpha2002 commited on
Commit
f222e67
·
verified ·
1 Parent(s): 9038a52

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -47,7 +47,7 @@ leading to potential biases or inaccuracies when applied to unseen or diverse da
47
 
48
  ## How to Get Started with the Model
49
 
50
- Use the code below to get started with the model.
51
 
52
  ```python
53
  from transformers import pipeline
@@ -59,7 +59,8 @@ pipe = pipeline("translation", model="alpha2002/eng_alpha_darija", tokenizer="al
59
  input_text = "Hello, how are you?"
60
  translation = pipe(input_text, src_lang="en_XX", tgt_lang="ar_AR")
61
 
62
- print("Translation:", translation[0]['translation_text']) ```
 
63
 
64
  ## Training Details
65
 
 
47
 
48
  ## How to Get Started with the Model
49
 
50
+ You can start using the model for English-to-Darija translation with the following code:
51
 
52
  ```python
53
  from transformers import pipeline
 
59
  input_text = "Hello, how are you?"
60
  translation = pipe(input_text, src_lang="en_XX", tgt_lang="ar_AR")
61
 
62
+ print("Translation:", translation[0]['translation_text'])
63
+ ```
64
 
65
  ## Training Details
66