Skip to content

Commit

Permalink
Update client.py (#6524)
Browse files Browse the repository at this point in the history
  • Loading branch information
osanseviero committed Nov 21, 2023
1 parent 228d9d9 commit c59b87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/python/gradio_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def duplicate(
)
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-------"
)
Expand Down

0 comments on commit c59b87d

Please sign in to comment.