mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix errors
This commit is contained in:
parent
47a4f1fd00
commit
cfc1187048
@ -382,8 +382,8 @@ async fn main() -> Result<(), RouterError> {
|
||||
}
|
||||
};
|
||||
|
||||
// Only send usage stats when TGI is run in container
|
||||
let is_container = usage_stats::is_container();
|
||||
// Only send usage stats when TGI is run in container and the function returns Some
|
||||
let is_container = matches!(usage_stats::is_container(), Ok(true));
|
||||
|
||||
let user_agent = if !disable_usage_stats && is_container {
|
||||
let reduced_args = usage_stats::Args::new(
|
||||
|
@ -1,7 +1,7 @@
|
||||
use crate::config::Config;
|
||||
use reqwest::header::HeaderMap;
|
||||
use serde::Serialize;
|
||||
use std::{fmt, process::Command, time::Duration};
|
||||
use std::{fs::File, io::{self, BufRead}, path::Path, process::Command, time::Duration};
|
||||
use uuid::Uuid;
|
||||
use csv::ReaderBuilder;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user