Upload app.py
Browse files
app.py
CHANGED
@@ -161,8 +161,10 @@ async def main():
|
|
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 |
-
|
|
|
|
|
166 |
# * 注意这里的设定,可以提高图片的精细程度。
|
167 |
st.image(file.get_image(), width=None,
|
168 |
output_format='PNG')
|
|
|
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')
|