Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -210,10 +210,12 @@ def get_vercel_deployments():
|
|
210 |
|
211 |
deployments = response.json().get('deployments', [])
|
212 |
|
213 |
-
# μνκ° 'READY'μ΄κ³ 'url'μ΄ μλ λ°°ν¬λ§
|
214 |
active_deployments = [
|
215 |
dep for dep in deployments
|
216 |
-
if dep.get('state') == 'READY' and
|
|
|
|
|
217 |
]
|
218 |
|
219 |
return active_deployments
|
@@ -333,20 +335,20 @@ def get_user_spaces():
|
|
333 |
</a>
|
334 |
</p>
|
335 |
<p style='color: #666; margin: 0;'>
|
336 |
-
Found {len(
|
337 |
</p>
|
338 |
</div>
|
339 |
|
340 |
-
<!--
|
341 |
-
<h3 style='color: #333; margin: 20px 0;'
|
342 |
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
|
343 |
-
{"".join(
|
344 |
</div>
|
345 |
|
346 |
-
<!--
|
347 |
-
<h3 style='color: #333; margin: 20px 0;'
|
348 |
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
|
349 |
-
{"".join(
|
350 |
</div>
|
351 |
</div>
|
352 |
"""
|
|
|
210 |
|
211 |
deployments = response.json().get('deployments', [])
|
212 |
|
213 |
+
# μνκ° 'READY'μ΄κ³ 'url'μ΄ μλ λ°°ν¬λ§ νν°λ§νκ³ 'javis1' μ μΈ
|
214 |
active_deployments = [
|
215 |
dep for dep in deployments
|
216 |
+
if dep.get('state') == 'READY' and
|
217 |
+
dep.get('url') and
|
218 |
+
'javis1' not in dep.get('name', '').lower() # javis1 μ μΈ
|
219 |
]
|
220 |
|
221 |
return active_deployments
|
|
|
335 |
</a>
|
336 |
</p>
|
337 |
<p style='color: #666; margin: 0;'>
|
338 |
+
Found {len(vercel_deployments)} Vercel deployments and {len(user_spaces)} Hugging Face spaces
|
339 |
</p>
|
340 |
</div>
|
341 |
|
342 |
+
<!-- Vercel Deployments (λ¨Όμ νμ) -->
|
343 |
+
<h3 style='color: #333; margin: 20px 0;'>β‘ Vercel Deployments</h3>
|
344 |
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
|
345 |
+
{"".join(get_vercel_card(dep, idx) for idx, dep in enumerate(vercel_deployments))}
|
346 |
</div>
|
347 |
|
348 |
+
<!-- Hugging Face Spaces (λμ€μ νμ) -->
|
349 |
+
<h3 style='color: #333; margin: 20px 0;'>π€ Hugging Face Spaces</h3>
|
350 |
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
|
351 |
+
{"".join(get_space_card(space, idx) for idx, space in enumerate(user_spaces))}
|
352 |
</div>
|
353 |
</div>
|
354 |
"""
|