Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,18 +24,13 @@ def load_data(file_path):
|
|
| 24 |
|
| 25 |
# ํฐํธ ์ค์
|
| 26 |
def set_font():
|
| 27 |
-
|
| 28 |
-
font_path
|
| 29 |
-
for font in fm.fontManager.ttflist:
|
| 30 |
-
if "Hancom Gothic Regular" in font.name:
|
| 31 |
-
font_path = font.fname
|
| 32 |
-
break
|
| 33 |
-
|
| 34 |
-
if font_path:
|
| 35 |
font_prop = fm.FontProperties(fname=font_path)
|
| 36 |
-
|
|
|
|
| 37 |
else:
|
| 38 |
-
st.error("
|
| 39 |
|
| 40 |
if page == "์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 5๊ฐ ๋์ถ ๋์":
|
| 41 |
st.title("์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 5๊ฐ ๋์ถ ๋์")
|
|
@@ -114,4 +109,4 @@ elif page == "์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 3๊ฐ ์ฅ๋ฅด":
|
|
| 114 |
if os.path.isfile(image_path):
|
| 115 |
st.image(image_path, caption="ํํธ๋งต", use_column_width=True)
|
| 116 |
else:
|
| 117 |
-
st.write("์ด๋ฏธ์ง ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.")
|
|
|
|
| 24 |
|
| 25 |
# ํฐํธ ์ค์
|
| 26 |
def set_font():
|
| 27 |
+
font_path = r"C:\Users\user\.streamlit\H2GTRM.TTF"
|
| 28 |
+
if os.path.isfile(font_path):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
font_prop = fm.FontProperties(fname=font_path)
|
| 30 |
+
plt.rcParams['font.family'] = font_prop.get_name()
|
| 31 |
+
plt.rcParams['axes.unicode_minus'] = False
|
| 32 |
else:
|
| 33 |
+
st.error("์ง์ ๋ ํฐํธ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.")
|
| 34 |
|
| 35 |
if page == "์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 5๊ฐ ๋์ถ ๋์":
|
| 36 |
st.title("์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 5๊ฐ ๋์ถ ๋์")
|
|
|
|
| 109 |
if os.path.isfile(image_path):
|
| 110 |
st.image(image_path, caption="ํํธ๋งต", use_column_width=True)
|
| 111 |
else:
|
| 112 |
+
st.write("์ด๋ฏธ์ง ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค.")
|