Spaces:
Running on CPU Upgrade

lunarflu HF staff commited on
Commit
ad546a0
·
verified ·
1 Parent(s): 2c9efa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -619,11 +619,12 @@ async def update_hub_stats():
619
  global global_df
620
 
621
  updated_df = global_df.copy()
622
- for index, user in global_df['hf_user_name'].iteritems():
623
  # fill blank values with n/a for now? then replace if they try to verify
624
  #column = global_df['hf_user_name']
625
 
626
  #for index, user in column:
 
627
  url = f"https://huggingface.co/api/users/{user}/overview"
628
  response = requests.get(url)
629
  if response.status_code == 200:
 
619
  global global_df
620
 
621
  updated_df = global_df.copy()
622
+ for index, row in global_df.iterrows():
623
  # fill blank values with n/a for now? then replace if they try to verify
624
  #column = global_df['hf_user_name']
625
 
626
  #for index, user in column:
627
+ user = row['hf_user_name']
628
  url = f"https://huggingface.co/api/users/{user}/overview"
629
  response = requests.get(url)
630
  if response.status_code == 200: