allinaigc commited on
Commit
793c411
·
1 Parent(s): 9580668

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -119,7 +119,7 @@ async def main():
119
  sns.set_style({'font.sans-serif':['simhei','Arial']})
120
  -------------------------------------------------------------------------
121
  """ ## seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
122
- myfont=FontProperties(fname='SimHei.ttf')
123
  # sns.set_style('whitegrid',{'font.sans-serif': ['simhei','Arial']})
124
  sns.set_style({'font.sans-serif': [myfont,'Arial']})
125
  # print('now font is:', myfont)
@@ -131,7 +131,7 @@ async def main():
131
  files = [File.from_path(str(uploaded_file_path))]
132
 
133
 
134
- with st.status('processing...', expanded=True,state='running'):
135
  ### generate the response
136
  response = await session.generate_response(
137
  user_request, files=files
 
119
  sns.set_style({'font.sans-serif':['simhei','Arial']})
120
  -------------------------------------------------------------------------
121
  """ ## seaborn中的palette参数可以设定图表的颜色,选项包括:deep, muted, pastel, bright, dark, colorblind,Spectral。更多参数可以参考:https://seaborn.pydata.org/generated/seaborn.color_palette.html。
122
+ myfont=FontProperties(fname='./SimHei.ttf')
123
  # sns.set_style('whitegrid',{'font.sans-serif': ['simhei','Arial']})
124
  sns.set_style({'font.sans-serif': [myfont,'Arial']})
125
  # print('now font is:', myfont)
 
131
  files = [File.from_path(str(uploaded_file_path))]
132
 
133
 
134
+ with st.status('processing...', expanded=True, state='running'):
135
  ### generate the response
136
  response = await session.generate_response(
137
  user_request, files=files