Skip to content

[nit] Format \t tabs to ' ' 4 spaces in snippets inputs #1302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions packages/tasks/src/snippets/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ const inputsSummarization = () =>

const inputsTableQuestionAnswering = () =>
`{
"query": "How many stars does the transformers repository have?",
"table": {
"Repository": ["Transformers", "Datasets", "Tokenizers"],
"Stars": ["36542", "4512", "3934"],
"Contributors": ["651", "77", "34"],
"Programming language": [
"Python",
"Python",
"Rust, Python and NodeJS"
]
}
"query": "How many stars does the transformers repository have?",
"table": {
"Repository": ["Transformers", "Datasets", "Tokenizers"],
"Stars": ["36542", "4512", "3934"],
"Contributors": ["651", "77", "34"],
"Programming language": [
"Python",
"Python",
"Rust, Python and NodeJS"
]
}
}`;

const inputsVisualQuestionAnswering = () =>
`{
"image": "cat.png",
"question": "What is in this image?"
}`;
"image": "cat.png",
"question": "What is in this image?"
}`;

const inputsQuestionAnswering = () =>
`{
"question": "What is my name?",
"context": "My name is Clara and I live in Berkeley."
"question": "What is my name?",
"context": "My name is Clara and I live in Berkeley."
}`;

const inputsTextClassification = () => `"I like you. I love you"`;
Expand Down Expand Up @@ -72,12 +72,12 @@ const inputsFillMask = (model: ModelDataMinimal) => `"The answer to the universe

const inputsSentenceSimilarity = () =>
`{
"source_sentence": "That is a happy person",
"sentences": [
"That is a happy dog",
"That is a very happy person",
"Today is a sunny day"
]
"source_sentence": "That is a happy person",
"sentences": [
"That is a happy dog",
"That is a very happy person",
"Today is a sunny day"
]
}`;

const inputsFeatureExtraction = () => `"Today is a sunny day and I will get some ice cream."`;
Expand All @@ -87,8 +87,8 @@ const inputsImageClassification = () => `"cats.jpg"`;
const inputsImageToText = () => `"cats.jpg"`;

const inputsImageToImage = () => `{
"image": "cat.png",
"prompt": "Turn the cat into a tiger."
"image": "cat.png",
"prompt": "Turn the cat into a tiger."
}`;

const inputsImageSegmentation = () => `"cats.jpg"`;
Expand Down
Loading