allinaigc commited on
Commit
fd85200
·
1 Parent(s): 01a8714

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -128,8 +128,9 @@ async def main():
128
  -------------------------------------------------------------------------
129
  1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
130
  2. 如果要求你输出图表,那么图的解析度dpi需要设定为500。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='deep'。
131
- 3. matplotlib和seaborn图表上的字体需要设置为中文字体,如下:plt.rcParams['font.family'] = 'myfont'
132
-
 
133
  -------------------------------------------------------------------------
134
  """ # seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
135
 
@@ -143,7 +144,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
- mpl.rcParams['font.family'] = ['myfont']
147
  # sns.set(font='myfont')
148
  # generate the response
149
  response = await session.generate_response(
 
128
  -------------------------------------------------------------------------
129
  1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
130
  2. 如果要求你输出图表,那么图的解析度dpi需要设定为500。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='deep'。
131
+ 3. matplotlib和seaborn图表上的字体需要设置为中文字体,如下:
132
+ plt.rcParams['font.family'] = 'myfont'
133
+ sns.set(font='myfont')
134
  -------------------------------------------------------------------------
135
  """ # seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
136
 
 
144
  files = [File.from_path(str(uploaded_file_path))]
145
 
146
  with st.status('processing...', expanded=True, state='running') as status:
147
+ mpl.rcParams['font.family'] = 'myfont'
148
  # sns.set(font='myfont')
149
  # generate the response
150
  response = await session.generate_response(