Spaces:
Configuration error

2joe / validate_ui.py
gimdfgdfsg's picture
Upload 6 files
9653ac8 verified
Raw History Blame Contribute Delete
446 Bytes
from pathlib import Path
app = Path("app.py").read_text(encoding="utf-8")
required = [
"Model Card ํ•œ๊ณ„ ๊ณ ์ง€",
"๋ฒ•์  ํŒ๋‹จ",
"์˜ค๋ฅ˜ ์‹ ๊ณ  ์ ‘์ˆ˜",
"์ตœ์ข… ํŒ๋‹จ์€ ์‚ฌ์šฉ์ž๊ฐ€",
]
missing = [x for x in required if x not in app]
if missing:
raise AssertionError(f"UI ํ•œ๊ณ„ ๊ณ ์ง€ ๊ฒ€์ฆ ์‹คํŒจ: {missing}")
print("PASS: Model Card ํ•œ๊ณ„ ๊ณ ์ง€์™€ ์ด์˜ ์ œ๊ธฐ UI ๋ฌธ๊ตฌ๊ฐ€ app.py์— ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.")