allinaigc commited on
Commit
d2953e7
·
1 Parent(s): 630e5f7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,6 @@ async def main():
146
 
147
  # generate the response
148
  myfont = FontProperties(fname='SimHei.ttf') # NOTE: 注意这里的云服务器路径格式。
149
- plt.title("这个是数据分布图", fontsize=12, fontproperties=myfont)
150
 
151
  response = await session.generate_response(
152
  user_request, files=files
@@ -163,6 +162,7 @@ async def main():
163
  # st.image(file.get_image() #! working.
164
  # file.show_image()
165
  # st.image(file.get_image(), width=500, output_format='png')
 
166
  # * 注意这里的设定,可以提高图片的精细程度。
167
  st.image(file.get_image(), width=None,
168
  output_format='PNG')
 
146
 
147
  # generate the response
148
  myfont = FontProperties(fname='SimHei.ttf') # NOTE: 注意这里的云服务器路径格式。
 
149
 
150
  response = await session.generate_response(
151
  user_request, files=files
 
162
  # st.image(file.get_image() #! working.
163
  # file.show_image()
164
  # st.image(file.get_image(), width=500, output_format='png')
165
+ sns.set(font='myfont')
166
  # * 注意这里的设定,可以提高图片的精细程度。
167
  st.image(file.get_image(), width=None,
168
  output_format='PNG')