Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,10 +62,10 @@ if page == "μ°λ Ήλ λ° μ±λ³μ λ°λ₯Έ μμ 5κ° λμΆ λμ":
|
|
| 62 |
st.write(f"μμ 5 λμ (μ°λ Ήλ: {selected_age}, μ±λ³: {selected_gender})")
|
| 63 |
fig, ax = plt.subplots(figsize=(10, 6))
|
| 64 |
sns.barplot(data=filtered_books, x='λμλͺ
', y='λμΆκ±΄μ', palette='viridis', ax=ax)
|
| 65 |
-
ax.set_title(f'{selected_age} - {selected_gender}μ μμ 5 λμ')
|
| 66 |
-
ax.set_xlabel('λμλͺ
')
|
| 67 |
-
ax.set_ylabel('λμΆκ±΄μ')
|
| 68 |
-
plt.xticks(rotation=45, ha='right')
|
| 69 |
st.pyplot(fig)
|
| 70 |
else:
|
| 71 |
st.write("μ νν 쑰건μ λ§λ λ°μ΄ν°κ° μμ΅λλ€.")
|
|
|
|
| 62 |
st.write(f"μμ 5 λμ (μ°λ Ήλ: {selected_age}, μ±λ³: {selected_gender})")
|
| 63 |
fig, ax = plt.subplots(figsize=(10, 6))
|
| 64 |
sns.barplot(data=filtered_books, x='λμλͺ
', y='λμΆκ±΄μ', palette='viridis', ax=ax)
|
| 65 |
+
ax.set_title(f'{selected_age} - {selected_gender}μ μμ 5 λμ', fontproperties=fontprop)
|
| 66 |
+
ax.set_xlabel('λμλͺ
', fontproperties=fontprop)
|
| 67 |
+
ax.set_ylabel('λμΆκ±΄μ', fontproperties=fontprop)
|
| 68 |
+
plt.xticks(rotation=45, ha='right', fontproperties=fontprop)
|
| 69 |
st.pyplot(fig)
|
| 70 |
else:
|
| 71 |
st.write("μ νν 쑰건μ λ§λ λ°μ΄ν°κ° μμ΅λλ€.")
|