JUNGU commited on
Commit
5d64f37
·
1 Parent(s): 3ff0b10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -6,11 +6,12 @@ import matplotlib.font_manager as fm
6
  from sklearn.cluster import KMeans
7
  import matplotlib.font_manager as fm
8
 
9
- # Set the font to NanumGothic for Korean support
10
- font_list
11
- font_path = "/home/user/app/NanumGothic-Regular.ttf"
12
- font = fm.FontProperties(fname=font_path).get_name()
13
- plt.rc('font', family=font)
 
14
 
15
  # Data Generation
16
  np.random.seed(42)
 
6
  from sklearn.cluster import KMeans
7
  import matplotlib.font_manager as fm
8
 
9
+ # Set the font to the provided NanumGothic dynamically
10
+ font_path = '/home/user/app/NanumGothic-Regular.ttf'
11
+ plt.rcParams['font.family'] = 'NanumGothic'
12
+ plt.rcParams['font.path'] = font_path
13
+ plt.rcParams['axes.unicode_minus'] = False # for minus sign
14
+
15
 
16
  # Data Generation
17
  np.random.seed(42)