Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,10 @@ import io
|
|
17 |
import pandas as pd
|
18 |
|
19 |
# Set the font to support Chinese characters
|
20 |
-
|
|
|
|
|
|
|
21 |
|
22 |
id2color= {1: [209, 35, 69],
|
23 |
2: [216, 208, 246],
|
|
|
17 |
import pandas as pd
|
18 |
|
19 |
# Set the font to support Chinese characters
|
20 |
+
font_path = 'msyhbd.ttc'
|
21 |
+
font_prop = fm.FontProperties(fname=font_path)
|
22 |
+
matplotlib.rcParams['font.family'] = font_prop.get_name()
|
23 |
+
#matplotlib.rcParams['font.family'] = 'Noto Sans CJK SC'
|
24 |
|
25 |
id2color= {1: [209, 35, 69],
|
26 |
2: [216, 208, 246],
|