m-ric HF Staff commited on
Commit
dd2da1a
·
verified ·
1 Parent(s): 3fe1351

Update frontend/src/App.js

Browse files
Files changed (1) hide show
  1. frontend/src/App.js +2 -2
frontend/src/App.js CHANGED
@@ -65,13 +65,13 @@ const App = () => {
65
  // Filter data based on selected action type
66
  const getFilteredData = () => {
67
  const actionType = showToolCalling ? 'tool-calling' : 'code';
68
- return allData.filter(item => item.source === actionType);
69
  };
70
 
71
  // Get vanilla score for a model
72
  const getVanillaScore = (modelId, metric) => {
73
  const vanillaEntry = allData.find(item =>
74
- item.model_id === modelId && item.source === 'vanilla'
75
  );
76
  return vanillaEntry?.scores[metric];
77
  };
 
65
  // Filter data based on selected action type
66
  const getFilteredData = () => {
67
  const actionType = showToolCalling ? 'tool-calling' : 'code';
68
+ return allData.filter(item => item.agent_action_type === actionType);
69
  };
70
 
71
  // Get vanilla score for a model
72
  const getVanillaScore = (modelId, metric) => {
73
  const vanillaEntry = allData.find(item =>
74
+ item.model_id === modelId && item.agent_action_type === 'vanilla'
75
  );
76
  return vanillaEntry?.scores[metric];
77
  };