Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -534,7 +534,6 @@ TOP_BEST_URLS = [
|
|
| 534 |
]
|
| 535 |
|
| 536 |
|
| 537 |
-
|
| 538 |
def get_user_spaces():
|
| 539 |
# 기존 Hugging Face 스페이스 가져오기
|
| 540 |
url = f"https://huggingface.co/api/spaces?author={USERNAME}&limit=500"
|
|
@@ -557,8 +556,8 @@ def get_user_spaces():
|
|
| 557 |
# Vercel 배포 가져오기
|
| 558 |
vercel_deployments = get_vercel_deployments()
|
| 559 |
|
| 560 |
-
#
|
| 561 |
-
|
| 562 |
|
| 563 |
html_content = f"""
|
| 564 |
<div style='padding: 20px; background-color: #f5f5f5;'>
|
|
@@ -572,10 +571,11 @@ def get_user_spaces():
|
|
| 572 |
</a>
|
| 573 |
</p>
|
| 574 |
<p style='color: #666; margin: 0;'>
|
| 575 |
-
Found {
|
| 576 |
</p>
|
| 577 |
</div>
|
| 578 |
|
|
|
|
| 579 |
|
| 580 |
<!-- Top Best -->
|
| 581 |
<h3 style='color: #333; margin: 20px 0;'>🏆 Top Best</h3>
|
|
|
|
| 534 |
]
|
| 535 |
|
| 536 |
|
|
|
|
| 537 |
def get_user_spaces():
|
| 538 |
# 기존 Hugging Face 스페이스 가져오기
|
| 539 |
url = f"https://huggingface.co/api/spaces?author={USERNAME}&limit=500"
|
|
|
|
| 556 |
# Vercel 배포 가져오기
|
| 557 |
vercel_deployments = get_vercel_deployments()
|
| 558 |
|
| 559 |
+
# TOP_BEST_URLS의 개수도 포함
|
| 560 |
+
total_deployments = len(TOP_BEST_URLS) + (len(vercel_deployments) if vercel_deployments else 0)
|
| 561 |
|
| 562 |
html_content = f"""
|
| 563 |
<div style='padding: 20px; background-color: #f5f5f5;'>
|
|
|
|
| 571 |
</a>
|
| 572 |
</p>
|
| 573 |
<p style='color: #666; margin: 0;'>
|
| 574 |
+
Found {total_deployments} Vercel deployments and {len(user_spaces)} Hugging Face spaces
|
| 575 |
</p>
|
| 576 |
</div>
|
| 577 |
|
| 578 |
+
|
| 579 |
|
| 580 |
<!-- Top Best -->
|
| 581 |
<h3 style='color: #333; margin: 20px 0;'>🏆 Top Best</h3>
|