m-ric HF Staff commited on
Commit
6d9b652
·
verified ·
1 Parent(s): d35450e

Update frontend/src/App.js

Browse files
Files changed (1) hide show
  1. frontend/src/App.js +8 -8
frontend/src/App.js CHANGED
@@ -66,11 +66,6 @@ const App = () => {
66
  setSortConfig({ key, direction });
67
  };
68
 
69
- // Filter data based on selected action type
70
- const getFilteredData = () => {
71
- const actionType = showToolCalling ? 'tool-calling' : 'code';
72
- return allData.filter(item => item.agent_action_type === actionType);
73
- };
74
 
75
  // Get vanilla score for a model
76
  const getVanillaScore = (modelId, metric) => {
@@ -155,10 +150,14 @@ const App = () => {
155
  </tr>
156
  </thead>
157
  <tbody>
158
- {filteredAndSortedData.map((item, index) => (
 
 
 
 
159
  <tr key={index}>
160
  <td className="model-cell">
161
- <div className="model-name">{item.model_id}</div>
162
  {showVanilla && (
163
  <div className="vanilla-text"><i>Vanilla score below</i></div>
164
  )}
@@ -172,7 +171,8 @@ const App = () => {
172
  </td>
173
  ))}
174
  </tr>
175
- ))}
 
176
  </tbody>
177
  </table>
178
  </div>
 
66
  setSortConfig({ key, direction });
67
  };
68
 
 
 
 
 
 
69
 
70
  // Get vanilla score for a model
71
  const getVanillaScore = (modelId, metric) => {
 
150
  </tr>
151
  </thead>
152
  <tbody>
153
+ {filteredAndSortedData.map((item, index) => {
154
+ const displayModelId = item.agent_action_type === "tool-calling" || item.agent_action_type === "tool_calling"
155
+ ? `${item.model_id} - tool calling`
156
+ : item.model_id;
157
+ return (
158
  <tr key={index}>
159
  <td className="model-cell">
160
+ <div className="model-name">{displayModelId}</div>
161
  {showVanilla && (
162
  <div className="vanilla-text"><i>Vanilla score below</i></div>
163
  )}
 
171
  </td>
172
  ))}
173
  </tr>
174
+ );
175
+ })}
176
  </tbody>
177
  </table>
178
  </div>