Pamudu13 commited on
Commit
661cd70
·
verified ·
1 Parent(s): 9aadbe4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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