YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)
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
Downloads last month
1
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.