pub async fn migrate_with_external_runtime(
file_paths: Vec<String>,
sha256s: Option<Vec<String>>,
hub_endpoint: &str,
cas_endpoint: Option<String>,
hub_token: &str,
repo_type: &str,
repo_id: &str,
) -> Result<()>Expand description
Migrate files to the Hub with external async runtime. How to use:
let file_paths = vec!["/path/to/file1".to_string(), "/path/to/file2".to_string()];
let hub_endpoint = "https://huggingface.co";
let hub_token = "your_token";
let repo_type = "model";
let repo_id = "your_repo_id";
migrate_with_external_runtime(file_paths, hub_endpoint, hub_token, repo_type, repo_id).await?;