Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,10 +6,6 @@ import seaborn as sns
|
|
| 6 |
import matplotlib.font_manager as fm
|
| 7 |
from matplotlib import rc
|
| 8 |
|
| 9 |
-
# μ λ κ²½λ‘λ‘ ν°νΈ μ€μ (νμ μ)
|
| 10 |
-
font_path = os.path.join(os.path.dirname(__file__), 'NanumGothic-Regular.ttf') # μ λ κ²½λ‘
|
| 11 |
-
font_prop = fm.FontProperties(fname=font_path)
|
| 12 |
-
rc('font', family=font_prop.get_name())
|
| 13 |
|
| 14 |
# μ¬μ΄λλ°μ λͺ©μ°¨ μΆκ°
|
| 15 |
st.sidebar.title("λͺ©μ°¨")
|
|
@@ -54,6 +50,7 @@ if page == "μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 5κ° λμΆ λμ":
|
|
| 54 |
|
| 55 |
# λ§λ κ·Έλν μκ°ν
|
| 56 |
if not filtered_books.empty:
|
|
|
|
| 57 |
st.write(f"μμ 5 λμ (μ°λ Ήλ: {selected_age}, μ±λ³: {selected_gender})")
|
| 58 |
fig, ax = plt.subplots(figsize=(10, 6))
|
| 59 |
sns.barplot(data=filtered_books, x='λμλͺ
', y='λμΆκ±΄μ', palette='viridis', ax=ax)
|
|
|
|
| 6 |
import matplotlib.font_manager as fm
|
| 7 |
from matplotlib import rc
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# μ¬μ΄λλ°μ λͺ©μ°¨ μΆκ°
|
| 11 |
st.sidebar.title("λͺ©μ°¨")
|
|
|
|
| 50 |
|
| 51 |
# λ§λ κ·Έλν μκ°ν
|
| 52 |
if not filtered_books.empty:
|
| 53 |
+
font_path = 'NanumGothic-Regular.ttf'
|
| 54 |
st.write(f"μμ 5 λμ (μ°λ Ήλ: {selected_age}, μ±λ³: {selected_gender})")
|
| 55 |
fig, ax = plt.subplots(figsize=(10, 6))
|
| 56 |
sns.barplot(data=filtered_books, x='λμλͺ
', y='λμΆκ±΄μ', palette='viridis', ax=ax)
|