Downloads · 30 days
3
5% of all-time downloads
Chuxia-sys/travel-chatbot-flan-t5
travel-chatbot-flan-t5 is a machine learning model from Chuxia-sys. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A fine-tuned instruction–output chatbot trained on travel itineraries and destination data.
Downloads · 30 days
3
5% of all-time downloads
All-time downloads
59
Public
Parameters
248M
5.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt4 GB · 57%
From the Hugging Face model README
A fine-tuned instruction–output chatbot trained on travel itineraries and destination data.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("your-username/travel-chatbot-flan-t5")
tokenizer = AutoTokenizer.from_pretrained("your-username/travel-chatbot-flan-t5")
prompt = "Create a 3-day itinerary in Siargao"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))