ginipick commited on
Commit
fdc4dd5
·
verified ·
1 Parent(s): 4f47b3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from datetime import datetime, date
10
  # ============================================
11
  FIREWORKS_API_KEY = os.getenv("FIREWORKS_API_KEY", "")
12
  FAL_KEY = os.getenv("FAL_KEY", "")
13
- ADMIN_USERNAMES = os.getenv("ADMIN_USERNAMES", "seawolf2357").split(",") # HF 유저네임
14
 
15
  # Persistent Storage 경로 (HuggingFace Spaces)
16
  DATA_DIR = "/data" if os.path.exists("/data") else "./data"
@@ -478,11 +478,29 @@ CUSTOM_CSS = """
478
  font-weight: 600;
479
  }
480
 
481
- /* 허깅페이스 푸터만 숨기기 */
482
  footer {
483
  display: none !important;
484
  }
485
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
486
  /* Gradio LoginButton 스타일 오버라이드 */
487
  .hf-login-btn button,
488
  button.hf-login-btn,
 
10
  # ============================================
11
  FIREWORKS_API_KEY = os.getenv("FIREWORKS_API_KEY", "")
12
  FAL_KEY = os.getenv("FAL_KEY", "")
13
+ ADMIN_USERNAMES = os.getenv("ADMIN_USERNAMES", "ginipicks").split(",") # HF 유저네임
14
 
15
  # Persistent Storage 경로 (HuggingFace Spaces)
16
  DATA_DIR = "/data" if os.path.exists("/data") else "./data"
 
478
  font-weight: 600;
479
  }
480
 
481
+ /* 허깅페이스 푸터 숨기기 */
482
  footer {
483
  display: none !important;
484
  }
485
 
486
+ /* 허깅페이스 우측 상단 탭박스 숨기기 */
487
+ #huggingface-space-header,
488
+ .huggingface-space-header,
489
+ div[id*="space-header"],
490
+ div[class*="space-header"],
491
+ .wrap.svelte-1rjryqp,
492
+ div.wrap.svelte-1rjryqp,
493
+ a[href*="huggingface.co/spaces"][target="_blank"],
494
+ .built-with,
495
+ .built-with-badge,
496
+ div[style*="position: fixed"][style*="top"][style*="right"],
497
+ div[style*="position: absolute"][style*="top: 0"][style*="right: 0"] {
498
+ display: none !important;
499
+ visibility: hidden !important;
500
+ opacity: 0 !important;
501
+ pointer-events: none !important;
502
+ }
503
+
504
  /* Gradio LoginButton 스타일 오버라이드 */
505
  .hf-login-btn button,
506
  button.hf-login-btn,