Update app.py
Browse files
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
|
10 |
-
|
11 |
-
|
12 |
-
font =
|
13 |
-
plt.
|
|
|
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)
|