dongsheng commited on
Commit
003043b
·
verified ·
1 Parent(s): 3eb0235

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,7 +13,9 @@ CITATION_BUTTON_TEXT = r"""@misc{2023opencompass,
13
  year={2023}
14
  }"""
15
  CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
 
16
  # DATA_URL_BASE = "http://opencompass.oss-cn-shanghai.aliyuncs.com/dev-assets/research-rank/research-data.REALTIME."
 
17
  DATA_URL_BASE = "http://opencompass.oss-cn-shanghai.aliyuncs.com/assets/research-rank/research-data.REALTIME."
18
 
19
  def find_latest_data_url():
@@ -200,16 +202,14 @@ def create_interface():
200
  )
201
 
202
  refresh_button = gr.Button("Refresh Data")
203
- update_status = gr.Markdown("Last update: " + datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
204
 
205
  def refresh_and_update():
206
  title, data = refresh_data()
207
- status = f"Last manual update: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}"
208
- return title, data, status
209
 
210
  refresh_button.click(
211
  fn=refresh_and_update,
212
- outputs=[title_comp, table, update_status],
213
  )
214
 
215
  size_filter.change(
 
13
  year={2023}
14
  }"""
15
  CITATION_BUTTON_LABEL = "Copy the following snippet to cite these results"
16
+ # 开发环境
17
  # DATA_URL_BASE = "http://opencompass.oss-cn-shanghai.aliyuncs.com/dev-assets/research-rank/research-data.REALTIME."
18
+ # 生产环境
19
  DATA_URL_BASE = "http://opencompass.oss-cn-shanghai.aliyuncs.com/assets/research-rank/research-data.REALTIME."
20
 
21
  def find_latest_data_url():
 
202
  )
203
 
204
  refresh_button = gr.Button("Refresh Data")
 
205
 
206
  def refresh_and_update():
207
  title, data = refresh_data()
208
+ return title, data
 
209
 
210
  refresh_button.click(
211
  fn=refresh_and_update,
212
+ outputs=[title_comp, table],
213
  )
214
 
215
  size_filter.change(