Skip to content

Commit

Permalink
add make style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hommayushi3 committed Aug 19, 2024
1 parent 6629926 commit 2d9b152
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7655,7 +7655,10 @@ def update_inference_endpoint(
namespace = namespace or self._get_namespace(token=token)

payload: Dict = {}
if any(value is not None for value in (accelerator, instance_size, instance_type, min_replica, max_replica, scale_to_zero_timeout)):
if any(
value is not None
for value in (accelerator, instance_size, instance_type, min_replica, max_replica, scale_to_zero_timeout)
):
payload["compute"] = {
"accelerator": accelerator,
"instanceSize": instance_size,
Expand Down

0 comments on commit 2d9b152

Please # to comment.