0 purchases
dart replicate
Dart-Replicate #
It is a Dart client for Replicate.
Introduction ✨ #
Replicate is an online service that enables users to run machine learning models on the cloud. This software package provides a simple client for their anonymous API, which makes it possible to run advanced models such as Stable Diffusion and Whisper with just a few lines of code 😄🤏.
Features 🚀 #
Anonymous API
Unlimited run
Installation ⬇️ #
dart pub add dart-replicate
copied to clipboard
Usage #
import 'package:dart-replicate/replicate' as app;
void main(List<String> arguments) async {
// Define a model name and input data
final model = 'owner/model:version';
final inputs = {
'prompt': 'a red cat, 4k photo',
};
final output = await app.Replicate.run(model, inputs);
print(output);
}
copied to clipboard
Contributing #
Have a feature you had like to see added? Create a pull request or open an issue.
Happy to connect! 😊 #
We hope you enjoy my projects. If you have any questions or feedback, please don't hesitate to reach out to me.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.