gpt2-base-fa / README.md
Amin24's picture
Update README.md
62c07c1
|
raw
history blame
458 Bytes
---
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.model import Model
model = Model.load("hezarai/gpt2-base-fa")
text = " در یک اتفاق شگفت انگیز، پژوهشگران"
outputs = model.predict(text)
print(outputs)
```