megalaa commited on
Commit
aa24cb4
1 Parent(s): 6b9c9ce

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -7,11 +7,11 @@ language:
7
 
8
  # How To Use This Model
9
 
10
- ## Sahidic With No Confidence Score
11
  ```
12
  from transformers import pipeline
13
 
14
- pipe = pipeline(model="megalaa/coptic-english-translator")
15
 
16
  output = pipe("ⲓⲏⲥⲟⲩⲥ ⲡⲉⲭⲣⲓⲥⲧⲟⲥ")
17
  print(output)
@@ -31,7 +31,7 @@ Additionally, use `output_confidence=True` if you want to output the model confi
31
  ```
32
  from transformers import pipeline
33
 
34
- pipe = pipeline(model="megalaa/coptic-english-translator")
35
  output = pipe("ⲓⲏⲥ ⲡⲭⲥ", from_bohairic=True, output_confidence=True)
36
  print(output)
37
  # {'translation': 'Jesus Christ.', 'confidence': 0.7219238269534208}
 
7
 
8
  # How To Use This Model
9
 
10
+ ## Sahidic Example With No Confidence Score
11
  ```
12
  from transformers import pipeline
13
 
14
+ pipe = pipeline(model="megalaa/coptic-english-translator", trust_remote_code=True)
15
 
16
  output = pipe("ⲓⲏⲥⲟⲩⲥ ⲡⲉⲭⲣⲓⲥⲧⲟⲥ")
17
  print(output)
 
31
  ```
32
  from transformers import pipeline
33
 
34
+ pipe = pipeline(model="megalaa/coptic-english-translator", trust_remote_code=True)
35
  output = pipe("ⲓⲏⲥ ⲡⲭⲥ", from_bohairic=True, output_confidence=True)
36
  print(output)
37
  # {'translation': 'Jesus Christ.', 'confidence': 0.7219238269534208}