XufengDuan commited on
Commit
0537749
1 Parent(s): 58e92e8

update scripts

Browse files
Files changed (2) hide show
  1. .idea/workspace.xml +3 -5
  2. app.py +2 -3
.idea/workspace.xml CHANGED
@@ -5,9 +5,7 @@
5
  </component>
6
  <component name="ChangeListManager">
7
  <list default="true" id="b60b8d5d-762f-4021-9ce4-054078cb27a7" name="Changes" comment="">
8
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
  <change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/src/display/utils.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/display/utils.py" afterDir="false" />
11
  </list>
12
  <option name="SHOW_DIALOG" value="false" />
13
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -42,17 +40,17 @@
42
  <breakpoints>
43
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
44
  <url>file://$PROJECT_DIR$/app.py</url>
45
- <line>54</line>
46
  <option name="timeStamp" value="39" />
47
  </line-breakpoint>
48
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
49
  <url>file://$PROJECT_DIR$/app.py</url>
50
- <line>71</line>
51
  <option name="timeStamp" value="40" />
52
  </line-breakpoint>
53
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
54
  <url>file://$PROJECT_DIR$/app.py</url>
55
- <line>72</line>
56
  <option name="timeStamp" value="41" />
57
  </line-breakpoint>
58
  </breakpoints>
 
5
  </component>
6
  <component name="ChangeListManager">
7
  <list default="true" id="b60b8d5d-762f-4021-9ce4-054078cb27a7" name="Changes" comment="">
 
8
  <change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
 
9
  </list>
10
  <option name="SHOW_DIALOG" value="false" />
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
 
40
  <breakpoints>
41
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
42
  <url>file://$PROJECT_DIR$/app.py</url>
43
+ <line>53</line>
44
  <option name="timeStamp" value="39" />
45
  </line-breakpoint>
46
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
47
  <url>file://$PROJECT_DIR$/app.py</url>
48
+ <line>70</line>
49
  <option name="timeStamp" value="40" />
50
  </line-breakpoint>
51
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
52
  <url>file://$PROJECT_DIR$/app.py</url>
53
+ <line>71</line>
54
  <option name="timeStamp" value="41" />
55
  </line-breakpoint>
56
  </breakpoints>
app.py CHANGED
@@ -51,12 +51,11 @@ def process_pending_evals():
51
 
52
  for _, eval_request in pending_eval_queue_df.iterrows():
53
  # 根据具体的列名和数据格式调整 `eval_request` 的内容
54
- model_id = eval_request['model'].split('/')[-1].split('">')[0]
55
- print(f"Evaluating model: {model_id}")
56
 
57
  # 调用评估函数
58
  run_eval_suite.run_evaluation(
59
- eval_request=model_id,
60
  local_dir=envs.EVAL_RESULTS_PATH_BACKEND,
61
  results_repo=envs.RESULTS_REPO,
62
  batch_size=1,
 
51
 
52
  for _, eval_request in pending_eval_queue_df.iterrows():
53
  # 根据具体的列名和数据格式调整 `eval_request` 的内容
54
+ print(f"Evaluating model: {eval_request.model}")
 
55
 
56
  # 调用评估函数
57
  run_eval_suite.run_evaluation(
58
+ eval_request=eval_request,
59
  local_dir=envs.EVAL_RESULTS_PATH_BACKEND,
60
  results_repo=envs.RESULTS_REPO,
61
  batch_size=1,