YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

import streamlit as st import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np from matplotlib.patches import Ellipse

์›น ํ™˜๊ฒฝ์šฉ ํ•œ๊ธ€ ํฐํŠธ ์„ค์ • (ํ—ˆ๊น…ํŽ˜์ด์Šค ์ „์šฉ)

plt.rc('font', family='DejaVu Sans')

โ€ป ์‹ค์ œ ํ—ˆ๊น…ํŽ˜์ด์Šค ์ƒ์šฉ ์„œ๋น„์Šค ์‹œ์—๋Š” Nanum ํฐํŠธ ์„ค์น˜ ์ฝ”๋“œ๊ฐ€ ํ•„์š”ํ•˜์ง€๋งŒ,

์‹œ์—ฐ์šฉ์œผ๋กœ๋Š” ๊ธฐ๋ณธ ํฐํŠธ๋กœ๋„ ๊ทธ๋ž˜ํ”„ ์ˆ˜์น˜ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

st.set_page_config(page_title="๋‡Œ ๋…ธํ™” ์˜ˆ์ธก ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ", layout="wide") st.title("๐Ÿง  ๋‡Œ ๋…ธํ™” ๋ฐ ๋‹ค์ค‘ ์งˆํ™˜ ์˜ˆ์ธก ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ")

st.sidebar.header("ํ™˜์ž ์„ค์ •") current_age = st.sidebar.number_input("ํ˜„์žฌ ์—ฐ๋ น", 40, 90, 60) snp_score = st.sidebar.slider("์œ ์ „์ž ํ™œ์„ฑ๋„", 0, 200, 120) target_age = st.sidebar.slider("๋ฏธ๋ž˜ ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ์—ฐ๋ น", current_age, 100, 60)

์˜ˆ์ธก ๋กœ์ง

ad_risk = min(99.0, (target_age * 0.6) + (snp_score * 0.15) - 20) pd_risk = min(99.0, 15 + (target_age - 73) * 8.5 + (snp_score * 0.1)) if target_age >= 73 else min(15.0, target_age * 0.1) normal_prob = max(1.0, 100.0 - max(ad_risk, pd_risk))

col1, col2 = st.columns(2)

with col1: st.subheader("๐Ÿ“Š ์งˆํ™˜๋ณ„ ๋ฐœ๋ณ‘ ์œ„ํ—˜๋„") df = pd.DataFrame({'์งˆํ™˜': ['Normal', 'AD', 'PD'], '์œ„ํ—˜๋„(%)': [normal_prob, ad_risk, pd_risk]}) fig, ax = plt.subplots() sns.barplot(x='์œ„ํ—˜๋„(%)', y='์งˆํ™˜', data=df, ax=ax, palette='viridis') st.pyplot(fig)

with col2: st.subheader("๐Ÿง  ๋‡Œ ๋ณ‘๋ณ€ ์‹œ๋ฎฌ๋ ˆ์ด์…˜") fig_brain, ax_brain = plt.subplots() ax_brain.add_patch(Ellipse((5, 5), 8, 6, color='lightgray', alpha=0.5)) # ๋ณ‘๋ณ€ ์‹œ๊ฐํ™” (์œ„ํ—˜๋„์— ๋”ฐ๋ผ ์ปค์ง€๋Š” ์›) ax_brain.scatter([6], [6], s=ad_risk20, c='red', alpha=0.5, label='AD Lesion') if target_age >= 73: ax_brain.scatter([4], [4], s=pd_risk30, c='purple', alpha=0.7, label='PD Lesion') ax_brain.set_xlim(0, 10); ax_brain.set_ylim(0, 10); ax_brain.axis('off') st.pyplot(fig_brain)

if target_age >= 73: st.error(f"๐Ÿšจ {target_age}์„ธ ๊ธฐ์  ํŒŒํ‚จ์Šจ ์œ„ํ—˜ ๊ธ‰์ฆ!")

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support