huggingface_tools library

Functions

downloadFile(ModelFile file, {required String targetFilePath, String? token, dynamic onProgress(DownloadProgress)?, bool resumeIncompleteDownloads = true, int maxRetries = 3, Duration timeout = const Duration(minutes: 30), Client? client}) Future<String>
Downloads a file from HuggingFace to the specified target path.
getModelInfo(String modelId, {Client? client}) Future<ModelDetails>
searchModels({String? search, String? author, String? filter, String? sort, bool sortDescending = true, int? limit, bool full = false, String? pipelineTag, String? library, List<String>? tags, Client? client}) Future<ModelSearchResponse>
Searches for models on Hugging Face.

Exceptions / Errors

ApiException
DownloadException