Update README.md
Browse files
README.md
CHANGED
|
@@ -174,13 +174,15 @@ model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
|
|
| 174 |
|
| 175 |
# Example: Translate Akkadian cuneiform to English
|
| 176 |
prompt = "Translate Akkadian cuneiform to English: "
|
| 177 |
-
input_text = "
|
| 178 |
|
| 179 |
inputs = tokenizer(prompt + input_text, return_tensors="pt")
|
| 180 |
outputs = model.generate(**inputs, max_length=64)
|
| 181 |
|
| 182 |
prediction = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 183 |
print("Prediction:", prediction)
|
|
|
|
|
|
|
| 184 |
```
|
| 185 |
|
| 186 |
|
|
|
|
| 174 |
|
| 175 |
# Example: Translate Akkadian cuneiform to English
|
| 176 |
prompt = "Translate Akkadian cuneiform to English: "
|
| 177 |
+
input_text = "π
πΉ π πΊ π½ π πΉ πΏ π π π΄ π» π π π π π π"
|
| 178 |
|
| 179 |
inputs = tokenizer(prompt + input_text, return_tensors="pt")
|
| 180 |
outputs = model.generate(**inputs, max_length=64)
|
| 181 |
|
| 182 |
prediction = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 183 |
print("Prediction:", prediction)
|
| 184 |
+
> "witness Nabu-naαΉ£ir son Na di-Issar servant of son king"
|
| 185 |
+
|
| 186 |
```
|
| 187 |
|
| 188 |
|