Upload app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ os.environ["VERBOSE"] = "True" # 可以看到具体的错误?
|
|
31 |
import matplotlib as mpl
|
32 |
|
33 |
myfont = FontProperties(fname='YaHei.ttf') # NOTE: 注意这里的云服务器路径格式。
|
34 |
-
mpl.rcParams['font.family'] = 'myfont'
|
35 |
# sns.set(font='myfont')
|
36 |
# plt.title("这个是数据分布图", fontsize=12, fontproperties=myfont)
|
37 |
# plt.xlabel('数据A', fontproperties=myfont)
|
@@ -143,6 +143,7 @@ async def main():
|
|
143 |
files = [File.from_path(str(uploaded_file_path))]
|
144 |
|
145 |
with st.status('processing...', expanded=True, state='running') as status:
|
|
|
146 |
# sns.set(font='myfont')
|
147 |
# generate the response
|
148 |
response = await session.generate_response(
|
|
|
31 |
import matplotlib as mpl
|
32 |
|
33 |
myfont = FontProperties(fname='YaHei.ttf') # NOTE: 注意这里的云服务器路径格式。
|
34 |
+
mpl.rcParams['font.family'] = ['myfont']
|
35 |
# sns.set(font='myfont')
|
36 |
# plt.title("这个是数据分布图", fontsize=12, fontproperties=myfont)
|
37 |
# plt.xlabel('数据A', fontproperties=myfont)
|
|
|
143 |
files = [File.from_path(str(uploaded_file_path))]
|
144 |
|
145 |
with st.status('processing...', expanded=True, state='running') as status:
|
146 |
+
mpl.rcParams['font.family'] = ['myfont']
|
147 |
# sns.set(font='myfont')
|
148 |
# generate the response
|
149 |
response = await session.generate_response(
|