Upload app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,6 @@ async def main():
|
|
111 |
# message_placeholder.markdown(full_response + "▌")
|
112 |
|
113 |
async with CodeInterpreterSession() as session:
|
114 |
-
|
115 |
# user_request = "对于文件中的'SepalLengthCm’数据给我一个'直方图',提供图表,并给出分析结果"
|
116 |
#! 可以用设定dpi=300来输出高质量的图表。(注:图的解析度dpi设定为300)
|
117 |
# environ_settings = "【<默认要求> 如果我没有告诉你任何定制化的要求,那么请按照以下的默认要求来回答:1. 你需要用提问的语言来回答(即:如果我用中文提问,你就用中文来回答;我如果用英文提问吗,你就用英文来回答)。2. 如果要求你输出图表,那么图的解析度dpi需要设定为300。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='deep')。】" ## seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
|
@@ -119,7 +118,7 @@ async def main():
|
|
119 |
-------------------------------------------------------------------------
|
120 |
1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
|
121 |
2. 如果要求你输出图表,那么图的解析度dpi需要设定为300。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='dark'。
|
122 |
-
3. seaborn
|
123 |
myfont = FontProperties(fname='SimHei.ttf')
|
124 |
fontproperties=myfont
|
125 |
-------------------------------------------------------------------------
|
|
|
111 |
# message_placeholder.markdown(full_response + "▌")
|
112 |
|
113 |
async with CodeInterpreterSession() as session:
|
|
|
114 |
# user_request = "对于文件中的'SepalLengthCm’数据给我一个'直方图',提供图表,并给出分析结果"
|
115 |
#! 可以用设定dpi=300来输出高质量的图表。(注:图的解析度dpi设定为300)
|
116 |
# environ_settings = "【<默认要求> 如果我没有告诉你任何定制化的要求,那么请按照以下的默认要求来回答:1. 你需要用提问的语言来回答(即:如果我用中文提问,你就用中文来回答;我如果用英文提问吗,你就用英文来回答)。2. 如果要求你输出图表,那么图的解析度dpi需要设定为300。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='deep')。】" ## seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
|
|
|
118 |
-------------------------------------------------------------------------
|
119 |
1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
|
120 |
2. 如果要求你输出图表,那么图的解析度dpi需要设定为300。图尽量使用seaborn库。seaborn库的参数设定:sns.set(rc={'axes.facecolor':'#FFF9ED','figure.facecolor':'#FFF9ED'}, palette='dark'。
|
121 |
+
3. seaborn中,[标题title], [x轴],[y轴]的中文字体设定如下要求:
|
122 |
myfont = FontProperties(fname='SimHei.ttf')
|
123 |
fontproperties=myfont
|
124 |
-------------------------------------------------------------------------
|