Spaces:
Sleeping
Sleeping
Update app.py
#1
by
jonghhhh
- opened
app.py
CHANGED
|
@@ -54,7 +54,13 @@ if page == "์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 5๊ฐ ๋์ถ ๋์":
|
|
| 54 |
|
| 55 |
# ๋ง๋ ๊ทธ๋ํ ์๊ฐํ
|
| 56 |
if not filtered_books.empty:
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
st.write(f"์์ 5 ๋์ (์ฐ๋ น๋: {selected_age}, ์ฑ๋ณ: {selected_gender})")
|
| 60 |
fig, ax = plt.subplots(figsize=(10, 6))
|
|
|
|
| 54 |
|
| 55 |
# ๋ง๋ ๊ทธ๋ํ ์๊ฐํ
|
| 56 |
if not filtered_books.empty:
|
| 57 |
+
# NanumGothic-Regular.ttf ํฐํธ ๊ฒฝ๋ก ์ค์
|
| 58 |
+
font_path = 'NanumGothic-Regular.ttf'
|
| 59 |
+
fontprop = font_manager.FontProperties(fname=font_path)
|
| 60 |
+
|
| 61 |
+
# Matplotlib์ ํฐํธ ์ค์
|
| 62 |
+
plt.rc('font', family=fontprop.get_name())
|
| 63 |
+
#plt.rc('font', family='NanumGothicCoding')
|
| 64 |
|
| 65 |
st.write(f"์์ 5 ๋์ (์ฐ๋ น๋: {selected_age}, ์ฑ๋ณ: {selected_gender})")
|
| 66 |
fig, ax = plt.subplots(figsize=(10, 6))
|