Skip to content

Adding options for environment variables.#85

Merged
Narsil merged 1 commit into
mainfrom
fix_env
Dec 30, 2024
Merged

Adding options for environment variables.#85
Narsil merged 1 commit into
mainfrom
fix_env

Conversation

@Narsil

@Narsil Narsil commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/lib.rs
Comment on lines +216 to +218
let mut path = dirs::home_dir().expect("Cache directory cannot be found");
path.push(".cache");
path.push("huggingface");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! I'd like to ask why an implementation for creating a Cache instance without using environment variables is provided here, and why it is set as the default behavior? Generally speaking, shouldn't it be the default to read environment variables?🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants