Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -167,6 +167,7 @@ def get_live_space_status():
|
|
| 167 |
while True:
|
| 168 |
try:
|
| 169 |
# Fetch the current runtime status of the Space
|
|
|
|
| 170 |
space_runtime = hf_api.get_space_runtime(repo_id=space_id)
|
| 171 |
|
| 172 |
# Extract relevant details
|
|
|
|
| 167 |
while True:
|
| 168 |
try:
|
| 169 |
# Fetch the current runtime status of the Space
|
| 170 |
+
hfapi = HfApi()
|
| 171 |
space_runtime = hf_api.get_space_runtime(repo_id=space_id)
|
| 172 |
|
| 173 |
# Extract relevant details
|