File size: 444 Bytes
92f4aec
 
 
 
dfcd6e8
 
 
92f4aec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
language:
- fa
library_name: hezar
tags:
- text-generation
- hezar
pipeline_tag: text-generation
---
The original [ParsGPT2](https://huggingface.co/HooshvareLab/gpt2-fa) model ported to Hezar for compatibility. 

## Usage
```
pip install hezar
```

```python
from hezar import Model


model = Model.load("gpt2-base-fa")
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
outputs = model.predict(text)
print(outputs)
```