openfree commited on
Commit
1c92bee
β€’
1 Parent(s): 2e9e5d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
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 dep.get('url')
 
 
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(user_spaces)} Hugging Face spaces and {len(vercel_deployments)} Vercel deployments
337
  </p>
338
  </div>
339
 
340
- <!-- Hugging Face Spaces -->
341
- <h3 style='color: #333; margin: 20px 0;'>πŸ€— Hugging Face Spaces</h3>
342
  <div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
343
- {"".join(get_space_card(space, idx) for idx, space in enumerate(user_spaces))}
344
  </div>
345
 
346
- <!-- Vercel Deployments -->
347
- <h3 style='color: #333; margin: 20px 0;'>⚑ Vercel Deployments</h3>
348
  <div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;'>
349
- {"".join(get_vercel_card(dep, idx) for idx, dep in enumerate(vercel_deployments))}
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
  """