Update client.py (#6524)

This commit is contained in:
Omar Sanseviero 2023-11-21 18:20:05 +01:00 committed by GitHub
parent 228d9d9f43
commit c59b87d7b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ class Client:
)
hardware = hardware or original_info.hardware
if current_hardware != hardware:
huggingface_hub.request_space_hardware(space_id, hardware) # type: ignore
huggingface_hub.request_space_hardware(space_id, hardware, token=hf_token) # type: ignore
print(
f"-------\nNOTE: this Space uses upgraded hardware: {hardware}... see billing info at https://huggingface.co/settings/billing\n-------"
)