8000 [nit] Format \t tabs to ' ' 4 spaces in snippets inputs (#1302) · huggingface/huggingface.js@e0de008 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0de008

Browse files
authored
[nit] Format \t tabs to ' ' 4 spaces in snippets inputs (#1302)
Just an alignment with the rest of the snippets (and inputs snippets). Suggested by @julien-c but at some point would be good to just run ruff/prettier on the generated snippets so that we don't have to handle this manually.
1 parent 204cd30 commit e0de008

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

packages/tasks/src/snippets/inputs.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ const inputsSummarization = () =>
1212

1313
const inputsTableQuestionAnswering = () =>
1414
`{
15-
"query": "How many stars does the transformers repository have?",
16-
"table": {
17-
"Repository": ["Transformers", "Datasets", "Tokenizers"],
18-
"Stars": ["36542", "4512", "3934"],
19-
"Contributors": ["651", "77", "34"],
20-
"Programming language": [
21-
"Python",
22-
"Python",
23-
"Rust, Python and NodeJS"
24-
]
25-
}
15+
"query": "How many stars does the transformers repository have?",
16+
"table": {
17+
"Repository": ["Transformers", "Datasets", "Tokenizers"],
18+
"Stars": ["36542", "4512", "3934"],
19+
"Contributors": ["651", "77", "34"],
20+
"Programming language": [
21+
"Python",
22+
"Python",
23+
"Rust, Python and NodeJS"
24+
]
25+
}
2626
}`;
2727

2828
const inputsVisualQuestionAnswering = () =>
2929
`{
30-
"image": "cat.png",
31-
"question": "What is in this image?"
32-
}`;
30+
"image": "cat.png",
31+
"question": "What is in this image?"
32+
}`;
3333

3434
const inputsQuestionAnswering = () =>
3535
`{
36-
"question": "What is my name?",
37-
"context": "My name is Clara and I live in Berkeley."
36+
"question": "What is my name?",
37+
"context": "My name is Clara and I live in Berkeley."
3838
}`;
3939

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

7373
const inputsSentenceSimilarity = () =>
7474
`{
75-
"source_sentence": "That is a happy person",
76-
"sentences": [
77-
"That is a happy dog",
78-
"That is a very happy person",
79-
"Today is a sunny day"
80-
]
75+
"source_sentence": "That is a happy person",
76+
"sentences": [
77+
"That is a happy dog",
78+
"That is a very happy person",
79+
"Today is a sunny day"
80+
]
8181
}`;
8282

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

8989
const inputsImageToImage = () => `{
90-
"image": "cat.png",
91-
"prompt": "Turn the cat into a tiger."
90+
"image": "cat.png",
91+
"prompt": "Turn the cat into a tiger."
9292
}`;
9393

9494
const inputsImageSegmentation = () => `"cats.jpg"`;

0 commit comments

Comments
 (0)
0