Downloads · 30 days
26
15% of all-time downloads
Nellissa/Malawi-Financial-Assistant
Malawi-Financial-Assistant is a text generation model from Nellissa. Use it when you need the model to write or continue text. The card lists the license as mit.
A fine-tuned T5 model specialized in providing financial advice and information for Malawi.
Downloads · 30 days
26
15% of all-time downloads
All-time downloads
175
Public
Repo size
5.8 KB
Likes
0
Public
Click a slice to open those files.
.json26 KB · 74%
From the Hugging Face model README
A fine-tuned T5 model specialized in providing financial advice and information for Malawi.
from transformers import T5Tokenizer, T5ForConditionalGeneration
model_name = 'Nellissa/Malawi-Financial-Assistant'
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
question = 'How can I save money in Malawi?'
input_text = f'Provide financial advice for Malawi: {question}'
inputs = tokenizer(input_text, return_tensors='pt', max_length=256, truncation=True)
outputs = model.generate(
inputs.input_ids,
max_length=512,
num_beams=4,
early_stopping=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
MIT License