Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -14,9 +14,9 @@ tags:
|
|
| 14 |
- onnx
|
| 15 |
pipeline_tag: translation
|
| 16 |
widget:
|
| 17 |
-
- text: "mero
|
| 18 |
example_title: "Romanized Nepali"
|
| 19 |
-
- text: "मेरो
|
| 20 |
example_title: "Devanagari Nepali"
|
| 21 |
- text: "bro i gonna go ktm"
|
| 22 |
example_title: "Informal English"
|
|
@@ -57,14 +57,14 @@ from transformers import AutoModel
|
|
| 57 |
model = AutoModel.from_pretrained("santoshdahal/setu", trust_remote_code=True)
|
| 58 |
|
| 59 |
# Translate text
|
| 60 |
-
result = model("mero
|
| 61 |
print("Translation:", result)
|
| 62 |
-
# Output: "My
|
| 63 |
|
| 64 |
# Works with Devanagari script too
|
| 65 |
-
result = model("मेरो
|
| 66 |
print("Translation:", result)
|
| 67 |
-
# Output: "My
|
| 68 |
|
| 69 |
# Handles informal text
|
| 70 |
result = model("bro i gonna go ktm")
|
|
|
|
| 14 |
- onnx
|
| 15 |
pipeline_tag: translation
|
| 16 |
widget:
|
| 17 |
+
- text: "mero ghar kathmandu ma cha"
|
| 18 |
example_title: "Romanized Nepali"
|
| 19 |
+
- text: "मेरो घर काठमाडौंमा छ"
|
| 20 |
example_title: "Devanagari Nepali"
|
| 21 |
- text: "bro i gonna go ktm"
|
| 22 |
example_title: "Informal English"
|
|
|
|
| 57 |
model = AutoModel.from_pretrained("santoshdahal/setu", trust_remote_code=True)
|
| 58 |
|
| 59 |
# Translate text
|
| 60 |
+
result = model("mero ghar kathmandu ma cha")
|
| 61 |
print("Translation:", result)
|
| 62 |
+
# Output: "My house is in Kathmandu."
|
| 63 |
|
| 64 |
# Works with Devanagari script too
|
| 65 |
+
result = model("मेरो घर काठमाडौंमा छ")
|
| 66 |
print("Translation:", result)
|
| 67 |
+
# Output: "My house is in Kathmandu."
|
| 68 |
|
| 69 |
# Handles informal text
|
| 70 |
result = model("bro i gonna go ktm")
|