-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Space runtime on static Space #1754
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
self.hardware = data.get("hardware", {}).get("current") | ||
self.requested_hardware = data.get("hardware", {}).get("requested") | ||
self.sleep_time = data.get("gcTimeout") | ||
self.storage = data.get("storage") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax is not super pretty but LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll yet you open an issue on https://github.com/python/cpython and in the meantime merge this PR 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huggingface_hub.get_space_runtime
was previously raising an exception on Static Space because hardware is not returned by the server. This PR fixes it by setting hardware to None.cc @clefourrier @hysts (from internal slack)