openfree commited on
Commit
ad7fc8e
1 Parent(s): 840d453

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -385,8 +385,6 @@ TOP_BEST_URLS = [
385
 
386
 
387
 
388
-
389
- # get_user_spaces 함수 수정
390
  def get_user_spaces():
391
  # 기존 Hugging Face 스페이스 가져오기
392
  url = f"https://huggingface.co/api/spaces?author={USERNAME}&limit=500"
@@ -408,6 +406,9 @@ def get_user_spaces():
408
 
409
  # Vercel 배포 가져오기
410
  vercel_deployments = get_vercel_deployments()
 
 
 
411
 
412
  html_content = f"""
413
  <div style='padding: 20px; background-color: #f5f5f5;'>
@@ -421,9 +422,10 @@ def get_user_spaces():
421
  </a>
422
  </p>
423
  <p style='color: #666; margin: 0;'>
424
- Found {len(vercel_deployments)} Vercel deployments and {len(user_spaces)} Hugging Face spaces
425
  </p>
426
  </div>
 
427
 
428
  <!-- Top Best -->
429
  <h3 style='color: #333; margin: 20px 0;'>🏆 Top Best</h3>
 
385
 
386
 
387
 
 
 
388
  def get_user_spaces():
389
  # 기존 Hugging Face 스페이스 가져오기
390
  url = f"https://huggingface.co/api/spaces?author={USERNAME}&limit=500"
 
406
 
407
  # Vercel 배포 가져오기
408
  vercel_deployments = get_vercel_deployments()
409
+
410
+ # 순수 Vercel 배포 수만 카운트
411
+ vercel_count = len(vercel_deployments) if vercel_deployments else 0
412
 
413
  html_content = f"""
414
  <div style='padding: 20px; background-color: #f5f5f5;'>
 
422
  </a>
423
  </p>
424
  <p style='color: #666; margin: 0;'>
425
+ Found {vercel_count} Vercel deployments and {len(user_spaces)} Hugging Face spaces
426
  </p>
427
  </div>
428
+
429
 
430
  <!-- Top Best -->
431
  <h3 style='color: #333; margin: 20px 0;'>🏆 Top Best</h3>