Module replicate_rust::model
source · Expand description
Used to interact with the Model Endpoints.
The model module contains all the functionality for interacting with the model endpoints of the Replicate API. Currently supports the following endpoint:
Example
use replicate_rust::Replicate;
let replicate = Replicate::new();
// Run the model and wait for the result in a blocking manner.
let result = replicate.run(version, inputs);
match replicate.models.get(String::from("replicate"), String::from("hello-world")) {
Ok(result) => println!("Success : {:?}", result),
Err(e) => println!("Error : {}", e),
};