mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
fix: clippy tweaks
This commit is contained in:
parent
d009aa3ee3
commit
62e6661616
@ -1,4 +1,3 @@
|
|||||||
/// Text Generation Inference webserver entrypoint
|
|
||||||
use axum::http::HeaderValue;
|
use axum::http::HeaderValue;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use hf_hub::api::tokio::{Api, ApiBuilder, ApiRepo};
|
use hf_hub::api::tokio::{Api, ApiBuilder, ApiRepo};
|
||||||
@ -185,7 +184,7 @@ async fn main() -> Result<(), RouterError> {
|
|||||||
.with_progress(false)
|
.with_progress(false)
|
||||||
.with_token(authorization_token);
|
.with_token(authorization_token);
|
||||||
|
|
||||||
if let Some(cache_dir) = std::env::var("HUGGINGFACE_HUB_CACHE").ok() {
|
if let Ok(cache_dir) = std::env::var("HUGGINGFACE_HUB_CACHE") {
|
||||||
builder = builder.with_cache_dir(cache_dir.into());
|
builder = builder.with_cache_dir(cache_dir.into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user