Update README.md
Browse files
README.md
CHANGED
@@ -4,4 +4,13 @@ language:
|
|
4 |
pipeline_tag: image-to-text
|
5 |
library_name: hezar
|
6 |
---
|
7 |
-
A TrOCR model for Persian. This is just a preview to verify the model works in Hezar. This model will be trained on more and better datasets soon!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
pipeline_tag: image-to-text
|
5 |
library_name: hezar
|
6 |
---
|
7 |
+
A TrOCR model for Persian. This is just a preview to verify the model works in Hezar. This model will be trained on more and better datasets soon!
|
8 |
+
|
9 |
+
#### Example
|
10 |
+
```python
|
11 |
+
from hezar import Model
|
12 |
+
|
13 |
+
model = Model.load("trocr-fa-v1")
|
14 |
+
text = model.predict(["image.jpg"])
|
15 |
+
print(text)
|
16 |
+
```
|