AlyxTeam commited on
Commit
f88e207
1 Parent(s): 2bc5a2c

feat: 使用ZeroGPU资源

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -10,6 +10,7 @@ configure_root_logger()
10
 
11
  from functools import partial
12
 
 
13
  import gradio as gr
14
  # Choose ligtheval or harness backend
15
  # from main_backend_lighteval import run_auto_eval
@@ -39,8 +40,12 @@ links_md = f"""
39
  | Results Repo | [{RESULTS_REPO}](https://huggingface.co/datasets/{RESULTS_REPO}) |
40
  """
41
 
42
- def auto_eval():
 
43
  logger.info("Triggering Auto Eval")
 
 
 
44
  run_auto_eval()
45
 
46
 
 
10
 
11
  from functools import partial
12
 
13
+ import spaces
14
  import gradio as gr
15
  # Choose ligtheval or harness backend
16
  # from main_backend_lighteval import run_auto_eval
 
40
  | Results Repo | [{RESULTS_REPO}](https://huggingface.co/datasets/{RESULTS_REPO}) |
41
  """
42
 
43
+ @spaces.GPU
44
+ def auto_log():
45
  logger.info("Triggering Auto Eval")
46
+
47
+ def auto_eval():
48
+ auto_log()
49
  run_auto_eval()
50
 
51