Skip to content

Commit b4d8dfc

Browse files
Use ApiBuilder::from_env() in from_pretrained function (#1737)
Use ApiBuilder::from_env() for builder initialization Co-authored-by: Arthur <[email protected]>
1 parent e5d781d commit b4d8dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokenizers/src/utils/from_pretrained.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn from_pretrained<S: AsRef<str>>(
5757
.into());
5858
}
5959

60-
let mut builder = ApiBuilder::new();
60+
let mut builder = ApiBuilder::from_env();
6161
if let Some(token) = params.token {
6262
builder = builder.with_token(Some(token));
6363
}

0 commit comments

Comments
 (0)