Views
No views yet
pip install hezar
1from hezar.models import Model 2 3 4model = Model.load("hezarai/gpt2-base-fa") 5text = " در یک اتفاق شگفت انگیز، پژوهشگران" 6outputs = model.predict(text) 7print(outputs)