Ƭ AudioClassificationArgs: Args
& { data
: any
}
Ƭ AudioClassificationReturn: AudioClassificationReturnValue
[]
Ƭ AutomaticSpeechRecognitionArgs: Args
& { data
: any
}
Ƭ ConversationalArgs: Args
& { inputs
: { generated_responses?
: string
[] ; past_user_inputs?
: string
[] ; text
: string
} ; parameters?
: { max_length?
: number
; max_time?
: number
; min_length?
: number
; repetition_penalty?
: number
; temperature?
: number
; top_k?
: number
; top_p?
: number
} }
Ƭ FeatureExtractionArgs: Args
& { inputs
: Record
<string
, any
> | Record
<string
, any
>[] }
Ƭ FeatureExtractionReturn: (number
| number
[])[]
Returned values are a list of floats, or a list of list of floats (depending on if you sent a string or a list of string, and if the automatic reduction, usually mean_pooling for instance was applied for you or not. This should be explained on the model’s README.
Ƭ FillMaskArgs: Args
& { inputs
: string
}
Ƭ FillMaskReturn: { score
: number
; sequence
: string
; token
: number
; token_str
: string
}[]
Ƭ ImageClassificationArgs: Args
& { data
: any
}
Ƭ ImageClassificationReturn: ImageClassificationReturnValue
[]
Ƭ ImageSegmentationArgs: Args
& { data
: any
}
Ƭ ImageSegmentationReturn: ImageSegmentationReturnValue
[]
Ƭ ObjectDetectionArgs: Args
& { data
: any
}
Ƭ ObjectDetectionReturn: ObjectDetectionReturnValue
[]
Ƭ QuestionAnswerArgs: Args
& { inputs
: { context
: string
; question
: string
} }
Ƭ SummarizationArgs: Args
& { inputs
: string
; parameters?
: { max_length?
: number
; max_time?
: number
; min_length?
: number
; repetition_penalty?
: number
; temperature?
: number
; top_k?
: number
; top_p?
: number
} }
Ƭ TableQuestionAnswerArgs: Args
& { inputs
: { query
: string
; table
: Record
<string
, string
[]> } }
Ƭ TextClassificationArgs: Args
& { inputs
: string
}
Ƭ TextClassificationReturn: { label
: string
; score
: number
}[]
Ƭ TextGenerationArgs: Args
& { inputs
: string
; parameters?
: { do_sample?
: boolean
; max_new_tokens?
: number
; max_time?
: number
; num_return_sequences?
: number
; repetition_penalty?
: number
; return_full_text?
: boolean
; temperature?
: number
; top_k?
: number
; top_p?
: number
} }
Ƭ TextToImageArgs: Args
& { inputs
: string
; negative_prompt?
: string
}
Ƭ TextToImageReturn: ArrayBuffer
Ƭ TokenClassificationArgs: Args
& { inputs
: string
; parameters?
: { aggregation_strategy?
: "none"
| "simple"
| "first"
| "average"
| "max"
} }
Ƭ TokenClassificationReturn: TokenClassificationReturnValue
[]
Ƭ TranslationArgs: Args
& { inputs
: string
}
Ƭ ZeroShotClassificationArgs: Args
& { inputs
: string
| string
[] ; parameters
: { candidate_labels
: string
[] ; multi_label?
: boolean
} }
Ƭ ZeroShotClassificationReturn: ZeroShotClassificationReturnValue
[]