Upload app.py
Browse files
app.py
CHANGED
|
@@ -159,13 +159,14 @@ async def main():
|
|
| 159 |
# await file.asave(f"/Users/yunshi/Downloads/360Data/Data Center/Working-On Task/演讲与培训/2023ChatGPT/Coding/code_interpreter/output{i}.png") ##working.
|
| 160 |
# st.image(file.get_image() #! working.
|
| 161 |
# file.show_image()
|
| 162 |
-
# st.image(file.get_image(), width=500, output_format='png')
|
| 163 |
myfont = FontProperties(fname='SimHei.ttf') # NOTE: 注意这里的云服务器路径格式。
|
| 164 |
# sns.set(font='myfont')
|
| 165 |
# sns.title(label='这是中文标题', fontproperties='myfont')
|
| 166 |
sns.axes_style("whitegrid", {'font.sans-serif':['myfont','Arial']})
|
|
|
|
| 167 |
|
| 168 |
# * 注意这里的设定,可以提高图片的精细程度。
|
|
|
|
| 169 |
st.image(file.get_image(), width=None,
|
| 170 |
output_format='PNG')
|
| 171 |
|
|
|
|
| 159 |
# await file.asave(f"/Users/yunshi/Downloads/360Data/Data Center/Working-On Task/演讲与培训/2023ChatGPT/Coding/code_interpreter/output{i}.png") ##working.
|
| 160 |
# st.image(file.get_image() #! working.
|
| 161 |
# file.show_image()
|
|
|
|
| 162 |
myfont = FontProperties(fname='SimHei.ttf') # NOTE: 注意这里的云服务器路径格式。
|
| 163 |
# sns.set(font='myfont')
|
| 164 |
# sns.title(label='这是中文标题', fontproperties='myfont')
|
| 165 |
sns.axes_style("whitegrid", {'font.sans-serif':['myfont','Arial']})
|
| 166 |
+
plt.rcParams['font.sans-serif'] = ['myfont']
|
| 167 |
|
| 168 |
# * 注意这里的设定,可以提高图片的精细程度。
|
| 169 |
+
file.show() #TODO: 看一下是否可以直接出图,图的质量和文字是否okay?
|
| 170 |
st.image(file.get_image(), width=None,
|
| 171 |
output_format='PNG')
|
| 172 |
|