import streamlit as st import os import pandas as pd import re def run_dashboard_page(): st.header("πŸ“Š μš”μ•½ κ²°κ³Ό λŒ€μ‹œλ³΄λ“œ") summaries_dir = os.path.join("docs", "summaries") if not os.path.exists(summaries_dir): st.info("μ €μž₯된 μš”μ•½μ΄ μ—†μŠ΅λ‹ˆλ‹€.") return files = [f for f in os.listdir(summaries_dir) if f.endswith(".md")] data = [] for file in files: with open(os.path.join(summaries_dir, file), "r", encoding="utf-8") as f: content = f.read() tag_match = re.search(r"(?i)νƒœκ·Έ\s*[::]\s*(.+)", content) tags = tag_match.group(1) if tag_match else "μ—†μŒ" data.append({ "πŸ“„ 파일λͺ…": file, "πŸ”  길이": len(content), "🏷️ νƒœκ·Έ": tags }) df = pd.DataFrame(data) st.dataframe(df)