hosted_inference_api 0.1.1 copy "hosted_inference_api: ^0.1.1" to clipboard
hosted_inference_api: ^0.1.1 copied to clipboard

Test and evaluate, for free, over 150,000 machine learning models with fast inference hosted on Hugging Face shared infrastructure.

example/main.dart

import 'package:hosted_inference_api/hosted_inference_api.dart';

Future<void> main() async {
  final api = HFApi(
    model: 'gpt2',
    outputType: HFOutputType.string,
    apiToken: 'hf_xxxxx',
  );
  final result = await api
      .run<String>('Can you please let us know more details about your ');
  print(result);
}
0
likes
160
points
14
downloads

Publisher

verified publisheradil.hanney.org

Weekly Downloads

Test and evaluate, for free, over 150,000 machine learning models with fast inference hosted on Hugging Face shared infrastructure.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, meta

More

Packages that depend on hosted_inference_api