Upload folder using huggingface_hub
Browse files- README.md +6 -6
- assets/decoder.onnx +1 -1
- assets/encoder.onnx +1 -1
- assets/spm.model +2 -2
- assets/spm.vocab +0 -0
README.md
CHANGED
|
@@ -65,19 +65,19 @@ from transformers import AutoModel
|
|
| 65 |
model = AutoModel.from_pretrained("santoshdahal/setu", trust_remote_code=True)
|
| 66 |
|
| 67 |
# Translate text
|
| 68 |
-
result = model("mero
|
| 69 |
print("Translation:", result)
|
| 70 |
-
# Output: "
|
| 71 |
|
| 72 |
# Works with Devanagari script too
|
| 73 |
-
result = model("
|
| 74 |
print("Translation:", result)
|
| 75 |
-
# Output: "
|
| 76 |
|
| 77 |
# Handles informal text
|
| 78 |
-
result = model("
|
| 79 |
print("Translation:", result)
|
| 80 |
-
# Output: "
|
| 81 |
|
| 82 |
```
|
| 83 |
|
|
|
|
| 65 |
model = AutoModel.from_pretrained("santoshdahal/setu", trust_remote_code=True)
|
| 66 |
|
| 67 |
# Translate text
|
| 68 |
+
result = model("mero name ramesh ho")
|
| 69 |
print("Translation:", result)
|
| 70 |
+
# Output: "My name is Ramesh."
|
| 71 |
|
| 72 |
# Works with Devanagari script too
|
| 73 |
+
result = model("सामाजिक मिडिया र ग्राउण्ड वास्तविकता फरक छ।")
|
| 74 |
print("Translation:", result)
|
| 75 |
+
# Output: "Social media and reality are different."
|
| 76 |
|
| 77 |
# Handles informal text
|
| 78 |
+
result = model("what is your nam")
|
| 79 |
print("Translation:", result)
|
| 80 |
+
# Output: "what's your name"
|
| 81 |
|
| 82 |
```
|
| 83 |
|
assets/decoder.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 242959762
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:933393ebf81a97cfcd51c0ca655b3e566d8a0ccfccf624cb6096a0eb1826bb93
|
| 3 |
size 242959762
|
assets/encoder.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 135159477
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aea444d021bf32cbbe4d26c91dcc8513bba037a8c89c286ad5b8c54d0313c672
|
| 3 |
size 135159477
|
assets/spm.model
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e77740dfc37b24f064f031aafa824cba8ff354f52081317f0afd88088d192811
|
| 3 |
+
size 1013520
|
assets/spm.vocab
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|