dltmdgus commited on
Commit
0b3887d
Β·
verified Β·
1 Parent(s): 29448e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -54,7 +54,9 @@ if page == "μ—°λ ΉλŒ€ 및 성별에 λ”°λ₯Έ μƒμœ„ 5개 λŒ€μΆœ λ„μ„œ":
54
 
55
  # λ§‰λŒ€ κ·Έλž˜ν”„ μ‹œκ°ν™”
56
  if not filtered_books.empty:
57
- plt.rc('font', family='NanumGothicCoding')
 
 
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
+ font_path = 'NanumGothic-Regular.ttf'
58
+ fontprop = font_manager.FontProperties(fname=font_path)
59
+ plt.rc('font', family=fontprop.get_name())
60
 
61
  st.write(f"μƒμœ„ 5 λ„μ„œ (μ—°λ ΉλŒ€: {selected_age}, 성별: {selected_gender})")
62
  fig, ax = plt.subplots(figsize=(10, 6))