RafaelJaime commited on
Commit
d41205d
Β·
verified Β·
1 Parent(s): fa1190a

Update src/App.js

Browse files
Files changed (1) hide show
  1. src/App.js +14 -2
src/App.js CHANGED
@@ -85,6 +85,11 @@ const UrologyLeaderboard = () => {
85
  }, []);
86
 
87
  const filteredAndSortedData = useMemo(() => {
 
 
 
 
 
88
  let filtered = data.filter(item => {
89
  const matchesSearch = item.model.toLowerCase().includes(searchTerm.toLowerCase()) ||
90
  item.baseModel.toLowerCase().includes(searchTerm.toLowerCase());
@@ -107,7 +112,7 @@ const UrologyLeaderboard = () => {
107
  return aValue > bValue ? 1 : -1;
108
  }
109
  });
110
- }, [data, searchTerm, filterLicense, sortBy, sortOrder]);
111
 
112
  const getRankIcon = (index) => {
113
  switch(index) {
@@ -569,7 +574,14 @@ const UrologyLeaderboard = () => {
569
  React.createElement('h3', { style: { fontSize: '20px', fontWeight: '600', color: 'white', marginBottom: '12px' } }, 'πŸ“Š About This Evaluation'),
570
  React.createElement('p', { style: { color: '#d1d5db', marginBottom: '12px' } }, 'This leaderboard evaluates natural language models on their ability to answer urology questions. Models must respond to multiple-choice questions about urological knowledge, demonstrating their understanding and mastery of this medical specialty.'),
571
  React.createElement('p', { style: { color: '#d1d5db', marginBottom: '16px' } },
572
- 'Questions are from the SAS (Servicio Andaluz de Salud) for the ',
 
 
 
 
 
 
 
573
  React.createElement('a', {
574
  href: 'https://www.sspa.juntadeandalucia.es/servicioandaluzdesalud/profesionales/ofertas-de-empleo/oferta-de-empleo-publico-puestos-base/oep-extraordinaria-decreto-ley-122022-centros-sas/cuadro-de-evolucion-concurso-oposicion-centros-sas/fea-urologia',
575
  target: '_blank',
 
85
  }, []);
86
 
87
  const filteredAndSortedData = useMemo(() => {
88
+ // Si hay error, no procesar datos
89
+ if (error) {
90
+ return [];
91
+ }
92
+
93
  let filtered = data.filter(item => {
94
  const matchesSearch = item.model.toLowerCase().includes(searchTerm.toLowerCase()) ||
95
  item.baseModel.toLowerCase().includes(searchTerm.toLowerCase());
 
112
  return aValue > bValue ? 1 : -1;
113
  }
114
  });
115
+ }, [data, searchTerm, filterLicense, sortBy, sortOrder, error]);
116
 
117
  const getRankIcon = (index) => {
118
  switch(index) {
 
574
  React.createElement('h3', { style: { fontSize: '20px', fontWeight: '600', color: 'white', marginBottom: '12px' } }, 'πŸ“Š About This Evaluation'),
575
  React.createElement('p', { style: { color: '#d1d5db', marginBottom: '12px' } }, 'This leaderboard evaluates natural language models on their ability to answer urology questions. Models must respond to multiple-choice questions about urological knowledge, demonstrating their understanding and mastery of this medical specialty.'),
576
  React.createElement('p', { style: { color: '#d1d5db', marginBottom: '16px' } },
577
+ 'Questions are from the ',
578
+ React.createElement('a', {
579
+ href: 'https://www.sspa.juntadeandalucia.es/servicioandaluzdesalud/',
580
+ target: '_blank',
581
+ rel: 'noopener noreferrer',
582
+ style: { color: '#60a5fa', textDecoration: 'none', fontWeight: '600' }
583
+ }, 'SAS (Servicio Andaluz de Salud)'),
584
+ ' for the ',
585
  React.createElement('a', {
586
  href: 'https://www.sspa.juntadeandalucia.es/servicioandaluzdesalud/profesionales/ofertas-de-empleo/oferta-de-empleo-publico-puestos-base/oep-extraordinaria-decreto-ley-122022-centros-sas/cuadro-de-evolucion-concurso-oposicion-centros-sas/fea-urologia',
587
  target: '_blank',