File tree Expand file tree Collapse file tree 4 files changed +24
-16
lines changed Expand file tree Collapse file tree 4 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,12 @@ export interface Text2TextGenerationParameters {
45
45
export type Text2TextGenerationTruncationStrategy = "do_not_truncate" | "longest_first" | "only_first" | "only_second" ;
46
46
47
47
/**
48
- * Outputs for Summarization inference
49
- *
50
- * Outputs of inference for the Text2text Generation task
48
+ * Outputs of inference for the Summarization task
51
49
*/
52
50
export interface SummarizationOutput {
53
- generatedText : unknown ;
54
51
/**
55
- * The generated text.
52
+ * The summarized text.
56
53
*/
57
- generated_text ? : string ;
54
+ summary_text : string ;
58
55
[ property : string ] : unknown ;
59
56
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$ref" : " /inference/schemas/text2text-generation/output.json" ,
3
2
"$id" : " /inference/schemas/summarization/output.json" ,
4
3
"$schema" : " http://json-schema.org/draft-06/schema#" ,
4
+ "description" : " Outputs of inference for the Summarization task" ,
5
5
"title" : " SummarizationOutput" ,
6
- "description" : " Outputs for Summarization inference"
6
+ "type" : " object" ,
7
+ "properties" : {
8
+ "summary_text" : {
9
+ "type" : " string" ,
10
+ "description" : " The summarized text."
11
+ }
12
+ },
13
+ "required" : [" summary_text" ]
7
14
}
Original file line number Diff line number Diff line change @@ -45,15 +45,12 @@ export interface Text2TextGenerationParameters {
45
45
export type Text2TextGenerationTruncationStrategy = "do_not_truncate" | "longest_first" | "only_first" | "only_second" ;
46
46
47
47
/**
48
- * Outputs for Translation inference
49
- *
50
- * Outputs of inference for the Text2text Generation task
48
+ * Outputs of inference for the Translation task
51
49
*/
52
50
export interface TranslationOutput {
53
- generatedText : unknown ;
54
51
/**
55
- * The generated text.
52
+ * The translated text.
56
53
*/
57
- generated_text ? : string ;
54
+ translation_text : string ;
58
55
[ property : string ] : unknown ;
59
56
}
Original file line number Diff line number Diff line change 1
1
{
2
- "$ref" : " /inference/schemas/text2text-generation/output.json" ,
3
2
"$id" : " /inference/schemas/translation/output.json" ,
4
3
"$schema" : " http://json-schema.org/draft-06/schema#" ,
4
+ "description" : " Outputs of inference for the Translation task" ,
5
5
"title" : " TranslationOutput" ,
6
- "description" : " Outputs for Translation inference"
6
+ "type" : " object" ,
7
+ "properties" : {
8
+ "translation_text" : {
9
+ "type" : " string" ,
10
+ "description" : " The translated text."
11
+ }
12
+ },
13
+ "required" : [" translation_text" ]
7
14
}
You can’t perform that action at this time.
0 commit comments