Spaces:
Running
Running
Upload from GitHub Actions: Merge remote changes with local frontend updates
Browse filesFiles changed (5)
18 unmodified lines19202122232429 unmodified lines5455565758596061621 unmodified line64656667686970717273747576771 unmodified line79808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216329 unmodified lines19319419519619719819920020120220320420518 unmodified linesconst [error, setError] = useState(null)const [selectedLanguages, setSelectedLanguages] = useState([])const [dialogVisible, setDialogVisible] = useState(false)useEffect(() => {fetch('/api/data', {29 unmodified linesreturn (<PrimeReactProvider><div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}><div style={{backgroundColor: '#fff3cd', color: '#856404', padding: '0.75rem 1.25rem', marginBottom: '1rem', border: '1px solid #ffeeba', borderRadius: '0.25rem', textAlign: 'center'}}><strong>Work in Progress:</strong> This dashboard is currently under active development. Evaluation results are not yet final.</div><headerstyle={{1 unmodified lineflexDirection: 'column',alignItems: 'center',justifyContent: 'center',padding: '5vh 0'}}><div><spanrole='img'aria-label='Globe Emoji'style={{ fontSize: '70px' }}>π</span>1 unmodified line<h1 style={{ fontSize: '2.5rem', fontWeight: '700' }}>AI Language Proficiency Monitor</h1><p style={{ fontSize: '1.15rem', color: '#555', marginTop: '0' }}>Tracking language proficiency of AI models for every language</p>{data && (<AutoCompletelanguages={data?.language_table}onComplete={items => setSelectedLanguages(items)}/>)}<div style={{maxWidth: '600px', textAlign: 'center', marginTop: '2rem'}}><p>The <i>AI Language Proficiency Monitor</i> presents comprehensive multilingual evaluation results of AI language models.</p><ul style={{textAlign: 'left'}}><li><b>Practitioners</b> can pick the best model for a given language.</li><li><b>Policymakers and funders</b> can identify and prioritize neglected languages.</li><li><b>Model developers</b> can compete on our <i>AI Language Proficiency</i> metric.</li></ul><p>We invite the community to <a href="https://forms.gle/ckvY9pS7XLcHYnaV8" target="_blank" rel="noopener noreferrer">submit</a> their custom finetuned models, and to <a href="https://github.com/datenlabor-bmz/ai-language-monitor/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener noreferrer">integrate</a> benchmarks for more languages and tasks.</p><p>Benchmark results automatically refresh every night and include the most popular models on <a href="https://openrouter.ai" target="_blank" rel="noopener noreferrer">OpenRouter</a>, plus community-listed models.</p>{/* <p>For a detailed methodlogy, see <a href="#">XXX</a>.</p> */}<p>The AI Language Proficiency Monitor is a collaboration between BMZ's <a href="https://www.bmz-digital.global/en/overview-of-initiatives/the-bmz-data-lab/" target="_blank" rel="noopener noreferrer">Data Lab</a>, the BMZ-Initiative <a href="https://www.bmz-digital.global/en/overview-of-initiatives/fair-forward/" target="_blank" rel="noopener noreferrer">Fair Forward</a> (implemented by GIZ), and the <a href="https://www.dfki.de/en/web/research/research-departments/multilinguality-and-language-technology/ee-team" target="_blank" rel="noopener noreferrer">E&E group</a> of DFKI's Multilinguality and Language Technology Lab.</p></div><a href="https://github.com/datenlabor-bmz/ai-language-monitor" target="_blank" rel="noopener noreferrer" style={{ textDecoration: 'none', color: 'inherit', marginTop: '2rem' }}><i className="pi pi-github" style={{ fontSize: '1.5rem' }} /></a></header><mainstyle={{display: 'flex',flexDirection: 'row',flexWrap: 'wrap',gap: '2rem',alignItems: 'center',width: '100%',height: '100%',justifyContent: 'center',paddingBottom: '5vh'}}>{loading && (<i className='pi pi-spinner pi-spin' style={{ fontSize: '4rem' }} />)}{error && <p>Error: {error}</p>}{data && (<><divstyle={{flex: '60vw 100vw 40vw',maxWidth: 'min(100vw, 800px)'}}><ModelTable data={data.model_table} /></div><divstyle={{flex: '60vw 100vw 40vw',maxWidth: 'min(100vw, 800px)'}}><LanguageTabledata={data.language_table}selectedLanguages={selectedLanguages}setSelectedLanguages={setSelectedLanguages}/></div><divstyle={{flex: '60vw 100vw 40vw',maxWidth: 'min(100vw, 800px)'}}><DatasetTable data={data} /></div><divid='figure'style={{flex: '100vw 100vw 100vw',maxWidth: 'min(100vw, 800px)',alignItems: 'center',justifyContent: 'center',width: '100%',position: 'relative'}}29 unmodified lines)}</main><Dialogvisible={dialogVisible}onHide={() => setDialogVisible(false)}style={{ width: '90vw', height: '90vh' }}maximizablemodalheader="Charts">{data && (<div style={{ width: '100%', height: '100%' }}>18 unmodified lines192021222324252629 unmodified lines565758596061626364656667686970717273747576771 unmodified line79808182838485868788899091929394951 unmodified line97989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417529 unmodified lines20520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727818 unmodified linesconst [error, setError] = useState(null)const [selectedLanguages, setSelectedLanguages] = useState([])const [dialogVisible, setDialogVisible] = useState(false)const [aboutVisible, setAboutVisible] = useState(false)const [contributeVisible, setContributeVisible] = useState(false)useEffect(() => {fetch('/api/data', {29 unmodified linesreturn (<PrimeReactProvider><div style={{ minHeight: '100vh', display: 'flex', flexDirection: 'column', width: '100vw' }}><div style={{backgroundColor: '#fff3cd', color: '#856404', padding: '0.75rem 1.25rem', marginBottom: '1rem', border: '1px solid #ffeeba', borderRadius: '0.25rem', textAlign: 'center'}}><strong>Work in Progress:</strong> This dashboard is currently under active development. Evaluation results are not yet final.<a href="https://github.com/datenlabor-bmz/ai-language-monitor" target="_blank" rel="noopener noreferrer" style={{textDecoration: 'none',color: '#856404',float: 'right',fontSize: '1.2rem',fontWeight: 'bold',padding: '0 0.5rem',borderRadius: '3px',backgroundColor: 'rgba(255,255,255,0.3)'}}><i className="pi pi-github" title="View on GitHub" style={{ marginRight: '0.3rem' }} />GitHub</a></div><headerstyle={{1 unmodified lineflexDirection: 'column',alignItems: 'center',justifyContent: 'center',padding: '5vh 5vw',width: '100%',maxWidth: '1400px',margin: '0 auto'}}><div><spanrole='img'aria-label='Globe Emoji'style={{ fontSize: '40px' }}>π</span>1 unmodified line<h1 style={{ fontSize: '2.5rem', fontWeight: '700' }}>AI Language Proficiency Monitor</h1><p style={{ fontSize: '1.10rem', color: '#555', marginTop: '0', marginBottom: '2rem' }}>Comprehensive multilingual evaluation results for AI language models</p><div style={{ display: 'flex', gap: '1rem', marginBottom: '1.5rem', flexWrap: 'wrap', justifyContent: 'center' }}><Buttonlabel="π About this tool"className="p-button-text"onClick={() => setAboutVisible(true)}style={{color: '#666',border: '1px solid #ddd',padding: '0.5rem 1rem',borderRadius: '4px',fontSize: '0.9rem'}}/><Buttonlabel="π Add your model"className="p-button-text"onClick={() => setContributeVisible(true)}style={{color: '#666',border: '1px solid #ddd',padding: '0.5rem 1rem',borderRadius: '4px',fontSize: '0.9rem'}}/></div>{data && (<AutoCompletelanguages={data?.language_table}onComplete={items => setSelectedLanguages(items)}/>)}</header><mainstyle={{display: 'flex',flexDirection: 'column',gap: '3rem',width: '100%',paddingBottom: '5vh',padding: '1rem 15vw 5vh 15vw'}}>{loading && (<div style={{ width: '100%', textAlign: 'center' }}><i className='pi pi-spinner pi-spin' style={{ fontSize: '4rem' }} /></div>)}{error && <div style={{ width: '100%', textAlign: 'center' }}><p>Error: {error}</p></div>}{data && (<><div style={{ width: '100%' }}><ModelTable data={data.model_table} /></div><div style={{ width: '100%' }}><LanguageTabledata={data.language_table}selectedLanguages={selectedLanguages}setSelectedLanguages={setSelectedLanguages}/></div><div style={{ width: '100%' }}><DatasetTable data={data} /></div><divid='figure'style={{width: '100%',position: 'relative'}}29 unmodified lines)}</main>{/* About Dialog */}<Dialogvisible={aboutVisible}onHide={() => setAboutVisible(false)}style={{ width: '600px' }}modalheader="About this tool"><div><p>The <i>AI Language Proficiency Monitor</i> presents comprehensive multilingual evaluation results of AI language models.</p><h4>Who is this for?</h4><ul><li><b>Practitioners</b> can pick the best model for a given language.</li><li><b>Policymakers and funders</b> can identify and prioritize neglected languages.</li><li><b>Model developers</b> can compete on our <i>AI Language Proficiency</i> metric.</li></ul><h4>β‘ Live Updates</h4><p>Benchmark results automatically refresh every night and include the most popular models from <a href="https://openrouter.ai" target="_blank" rel="noopener noreferrer">OpenRouter</a>, plus community-submitted models.</p><h4>Authors</h4><p>The AI Language Proficiency Monitor is a collaboration between BMZ's <a href="https://www.bmz-digital.global/en/overview-of-initiatives/the-bmz-data-lab/" target="_blank" rel="noopener noreferrer">Data Lab</a>, the BMZ-Initiative <a href="https://www.bmz-digital.global/en/overview-of-initiatives/fair-forward/" target="_blank" rel="noopener noreferrer">Fair Forward</a> (implemented by GIZ), and the <a href="https://www.dfki.de/en/web/research/research-departments/multilinguality-and-language-technology/ee-team" target="_blank" rel="noopener noreferrer">E&E group</a> of DFKI's Multilinguality and Language Technology Lab.</p><h4>π Links</h4><p><ahref="https://github.com/datenlabor-bmz/ai-language-monitor"target="_blank"rel="noopener noreferrer"style={{color: '#666',textDecoration: 'none',display: 'inline-flex',alignItems: 'center',gap: '0.5rem'}}><i className="pi pi-github" style={{ fontSize: '1.2rem' }} />View source code on GitHub</a></p></div></Dialog>{/* Contribute Dialog */}<Dialogvisible={contributeVisible}onHide={() => setContributeVisible(false)}style={{ width: '600px' }}modalheader="Add your model & Contribute"><div><h4>π Submit Your Model</h4><p>Have a custom fine-tuned model you'd like to see on the leaderboard?</p><p><a href="https://forms.gle/ckvY9pS7XLcHYnaV8" target="_blank" rel="noopener noreferrer" style={{ color: '#28a745', fontWeight: 'bold' }}>β Submit your model here</a></p><h4>π§ Contribute to Development</h4><p>Help us expand language coverage and add new evaluation tasks:</p><p><a href="https://github.com/datenlabor-bmz/ai-language-monitor/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener noreferrer" style={{ color: '#007bff', fontWeight: 'bold' }}>β Contribution guidelines</a></p></div></Dialog>{/* Full-screen Dialog for Charts */}<Dialogvisible={dialogVisible}onHide={() => setDialogVisible(false)}style={{ width: '90vw', height: '90vh' }}maximizablemodalheader="Interactive Visualizations">{data && (<div style={{ width: '100%', height: '100%' }}>
3 unmodified lines456789103 unmodified linesconst [autoComplete, setAutoComplete] = useState('')const [suggestions, setSuggestions] = useState([])const exampleCodes = ['de', 'fr', 'ar', 'hi', 'sw', 'fa']const exampleLanguages = exampleCodes.map(code =>languages?.find(item => item.bcp_47 === code))3 unmodified lines45678910113 unmodified linesconst [autoComplete, setAutoComplete] = useState('')const [suggestions, setSuggestions] = useState([])const exampleCodes = ['sw','ar', 'hi', 'en']// const exampleCodes = ['ar', 'hi', 'sw', 'fa']const exampleLanguages = exampleCodes.map(code =>languages?.find(item => item.bcp_47 === code))
110 unmodified lines111112113114115116117110 unmodified linesscrollablescrollHeight='600px'id='dataset-table'style={{ width: '800px', minHeight: '650px' }}><Columnfield='implemented'110 unmodified lines111112113114115116117110 unmodified linesscrollablescrollHeight='600px'id='dataset-table'style={{ width: '100%', minHeight: '650px' }}><Columnfield='implemented'
134 unmodified lines135136137138139140141134 unmodified linesscrollablescrollHeight='600px'id='language-table'style={{ width: '800px', minHeight: '650px' }}><Column selectionMode='multiple' headerStyle={{ width: '3rem' }} /><Column134 unmodified lines135136137138139140141134 unmodified linesscrollablescrollHeight='600px'id='language-table'style={{ width: '100%', minHeight: '650px' }}><Column selectionMode='multiple' headerStyle={{ width: '3rem' }} /><Column
160 unmodified lines161162163164165166167160 unmodified linesscrollablescrollHeight='600px'id='model-table'style={{ width: '800px', minHeight: '650px' }}emptyMessage='No models have been evaluated for the selected languages.'><Column field='rank' body={rankBodyTemplate} headerTooltip='Rank' />160 unmodified lines161162163164165166167160 unmodified linesscrollablescrollHeight='600px'id='model-table'style={{ width: '100%', minHeight: '650px' }}emptyMessage='No models have been evaluated for the selected languages.'><Column field='rank' body={rankBodyTemplate} headerTooltip='Rank' />
frontend/src/App.js+125-52
frontend/src/components/AutoComplete.js+2-1
frontend/src/components/DatasetTable.js+1-1
frontend/src/components/LanguageTable.js+1-1
frontend/src/components/ModelTable.js+1-1