YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
from datasets import Dataset
Prepare your data
data = [
{"source_text": "Hello, how are you?", "target_text": "ู
ุฑุญุจุง ููู ุญุงููุ"},
{"source_text": "I am fine, thank you.", "target_text": "ุฃูุง ุจุฎHere's the complete code to prepare and upload a translation dataset to Hugging Face using the datasets library:
from datasets import Dataset
# Prepare your data
data = [
{"source_text": "Hello, how are you?", "target_text": "ู
ุฑุญุจุง ููู ุญุงููุ"},
{"source_text": "I am fine, thank you.", "target_text": "ุฃูุง ุจุฎูุฑุ ุดูุฑุงู ูู."},
{"source_text": "What is your name?", "target_text": "ู
ุง ูู ุงุณู
ูุ"},
...
]
# Convert your data into a format compatible with Hugging Face
dataset = Dataset.from_dict(data)
dataset = dataset.rename_column("source_text", "input_text")
dataset = dataset.rename_column("target_text", "target_text")
# Upload your data to Hugging Face
dataset.save_to_disk("translation_dataset")
---
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support