allinaigc commited on
Commit
c6328d7
·
1 Parent(s): e9739d0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -118,8 +118,7 @@ async def main():
118
  -------------------------------------------------------------------------
119
  1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
120
  2. 如果要求你输出图表,那么图的解析度dpi需要设定为300。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='dark'。
121
- 3. seaborn中,[标题title], [xlabel],[ylabel]的字体设定如下要求:
122
- fontproperties = matplotlib.font_manager.FontProperties(fname='SimHei.ttf')
123
  -------------------------------------------------------------------------
124
  """ ## seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
125
 
@@ -130,7 +129,6 @@ async def main():
130
  ### 加载上传的文件,主要路径在上面代码中。
131
  files = [File.from_path(str(uploaded_file_path))]
132
 
133
-
134
  with st.status('processing...', expanded=True, state='running') as status:
135
  ### generate the response
136
  response = await session.generate_response(
 
118
  -------------------------------------------------------------------------
119
  1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
120
  2. 如果要求你输出图表,那么图的解析度dpi需要设定为300。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='dark'。
121
+ 3. [plt.title], [plt.xlabel],[plt.ylabel]的字体设定如下要求:fontproperties = myfont
 
122
  -------------------------------------------------------------------------
123
  """ ## seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
124
 
 
129
  ### 加载上传的文件,主要路径在上面代码中。
130
  files = [File.from_path(str(uploaded_file_path))]
131
 
 
132
  with st.status('processing...', expanded=True, state='running') as status:
133
  ### generate the response
134
  response = await session.generate_response(