Update README.md

#1
by Amin24 - opened
No description provided.

This throws an error:

from hezar import Model
model = Model.load("gpt2-base-fa")
text = "سلام"
outputs = model.predict(text)
print(outputs)

Should be like this instead:

from hezar.models import Model
model = Model.load("hezarai/gpt2-base-fa")
text = " سلام"
outputs = model.predict(text)
print(outputs)

arxyzan changed pull request status to merged
Hezar AI org

@Amin24 You're right, we recently changed the import structure and forgot to rewrite the examples on the hub. Thanks.

Sign up or log in to comment