Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- fa
|
4 |
+
library_name: hezar
|
5 |
+
pipeline_tag: text-generation
|
6 |
+
---
|
7 |
+
The original [ParsGPT2](https://huggingface.co/HooshvareLab/gpt2-fa) model ported to Hezar for compatibility.
|
8 |
+
|
9 |
+
## Usage
|
10 |
+
```
|
11 |
+
pip install hezar
|
12 |
+
```
|
13 |
+
|
14 |
+
```python
|
15 |
+
from hezar import Model
|
16 |
+
|
17 |
+
|
18 |
+
model = Model.load("gpt2-base-fa")
|
19 |
+
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
|
20 |
+
outputs = model.predict(text)
|
21 |
+
print(outputs)
|
22 |
+
```
|