Downloads · 30 days
7
22% of all-time downloads
text2font/text2svg_summarization-2-epochs-28-step-367000
text2svg_summarization-2-epochs-28-step-367000 is a machine learning model from text2font. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
Downloads · 30 days
7
22% of all-time downloads
All-time downloads
32
Public
Repo size
14.8 GB
Likes
0
Public
Click a slice to open those files.
.pt9.8 GB · 67%
From the Hugging Face model README
text = "Context: سعي; Char: س; Pos: 0"
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("pain/text2svg_summarization-2-epochs-28-step-367000")
inputs = tokenizer(text, return_tensors="pt").input_ids
from transformers import AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("pain/text2svg_summarization-2-epochs-28-step-367000")
outputs = model.generate(inputs, max_new_tokens=1024, do_sample=False)
tok_out = tokenizer.decode(outputs[0],skip_special_tokens=True)
tok_out