{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== '免费Z-image图片生成' && linkText !== '免费Z-image图片生成' ) { link.textContent = '免费Z-image图片生成'; link.href = 'https://zimage.run'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== 'Vibevoice' ) { link.textContent = 'Vibevoice'; link.href = 'https://vibevoice.info/'; replacedLinks.add(link); } // 替换Pricing链接 - 仅替换一次 else if ( (linkHref.includes('/pricing') || linkHref === '/pricing' || linkText === 'Pricing' || linkText.match(/^s*Pricings*$/i)) && linkText !== '免费去水印' ) { link.textContent = '免费去水印'; link.href = 'https://sora2watermarkremover.net/'; replacedLinks.add(link); } // 替换Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) && linkText !== 'GitHub加速' ) { link.textContent = 'GitHub加速'; link.href = 'https://githubproxy.cc'; replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, '免费Z-image图片生成'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \n\n\n","replicas":{"requested":1},"devMode":false,"domains":[{"domain":"patronusai-glider.hf.space","stage":"READY"}]},"shortDescription":"GLIDER: Grading LLM Interactions and Decisions using Explain","title":"GLIDER","isLikedByUser":false,"ai_short_description":"Evaluate text based on pass criteria and rubric","ai_category":"Text Analysis","trendingScore":0,"tags":["gradio","region:us"],"featured":false},{"author":"PatronusAI","authorData":{"_id":"64c98cca7fe12ecd0a9f4a3d","avatarUrl":"https://aifasthub.com/avatars/v1/production/uploads/noauth/jOAWAvmqOod2rYsgdxF0w.png","fullname":"Patronus AI","name":"PatronusAI","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":true,"plan":"team","followerCount":87},"colorFrom":"indigo","colorTo":"blue","createdAt":"2024-07-29T01:02:23.000Z","emoji":"🔥","id":"PatronusAI/LynxDemo","lastModified":"2024-08-15T20:37:34.000Z","likes":6,"pinned":false,"private":false,"sdk":"gradio","repoType":"space","runtime":{"stage":"RUNTIME_ERROR","hardware":{"current":null,"requested":"cpu-basic"},"storage":null,"gcTimeout":172800,"errorMessage":"Scheduling failure: unable to schedule","replicas":{"requested":1},"devMode":false,"domains":[{"domain":"patronusai-lynxdemo.hf.space","stage":"READY"}]},"title":"LynxDemo","isLikedByUser":false,"ai_short_description":"Evaluate answer fidelity to document","ai_category":"Text Analysis","trendingScore":0,"tags":["gradio","region:us"],"featured":false}],"numDatasets":37,"numModels":11,"numSpaces":5,"lastOrgActivities":[],"acceptLanguages":["*"],"canReadRepos":false,"canReadSpaces":false,"blogPosts":[],"showRepoType":"space","numReposPerPage":24,"repos":[{"author":"PatronusAI","authorData":{"_id":"64c98cca7fe12ecd0a9f4a3d","avatarUrl":"https://aifasthub.com/avatars/v1/production/uploads/noauth/jOAWAvmqOod2rYsgdxF0w.png","fullname":"Patronus AI","name":"PatronusAI","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":true,"plan":"team","followerCount":87},"colorFrom":"green","colorTo":"indigo","createdAt":"2025-05-14T16:09:44.000Z","emoji":"🥇","id":"PatronusAI/TRAIL","lastModified":"2025-05-15T17:00:55.000Z","likes":7,"pinned":true,"private":false,"sdk":"gradio","repoType":"space","runtime":{"stage":"SLEEPING","hardware":{"current":null,"requested":"cpu-basic"},"storage":null,"gcTimeout":172800,"replicas":{"requested":1},"devMode":false,"domains":[{"domain":"patronusai-trail.hf.space","stage":"READY"}]},"shortDescription":"Trace Reasoning and Agentic Issue Localization Leaderboard","title":"TRAIL Leaderboard","isLikedByUser":false,"originRepo":{"name":"demo-leaderboard-backend/leaderboard","author":{"_id":"655dbd8360009b03e4451217","avatarUrl":"https://www.gravatar.com/avatar/48236a8e5b71950f0708b3f2e3e7925f?d=retro&size=100","fullname":"Demo leaderboard with an integrated backend","name":"demo-leaderboard-backend","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":false,"followerCount":21}},"ai_short_description":"Upload and extract JSON files from a ZIP","ai_category":"Data Visualization","trendingScore":0,"tags":["gradio","leaderboard","region:us"],"featured":false},{"author":"PatronusAI","authorData":{"_id":"64c98cca7fe12ecd0a9f4a3d","avatarUrl":"https://aifasthub.com/avatars/v1/production/uploads/noauth/jOAWAvmqOod2rYsgdxF0w.png","fullname":"Patronus AI","name":"PatronusAI","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":true,"plan":"team","followerCount":87},"colorFrom":"green","colorTo":"indigo","createdAt":"2023-12-12T01:50:01.000Z","emoji":"🥇","id":"PatronusAI/enterprise_scenarios_leaderboard","lastModified":"2024-06-12T23:58:13.000Z","likes":105,"pinned":true,"private":false,"sdk":"gradio","repoType":"space","runtime":{"stage":"RUNTIME_ERROR","hardware":{"current":null,"requested":"cpu-upgrade"},"storage":null,"gcTimeout":172800,"errorMessage":"Exit code: 1. Reason: /huggingface_hub/utils/_http.py\", line 454, in hf_raise_for_status\n raise _format(RepositoryNotFoundError, message, response) from e\nhuggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67b16f7f-64157aa82a8a211831f0ec19;8b2d3db2-86c7-45d6-974b-1b9d3261b40c)\n\nRepository Not Found for url: https://huggingface.co/api/datasets/PatronusAI/requests/revision/main.\nPlease make sure you specified the correct `repo_id` and `repo_type`.\nIf you are trying to access a private or gated repo, make sure you are authenticated.\nInvalid username or password.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py\", line 406, in hf_raise_for_status\n response.raise_for_status()\n File \"/usr/local/lib/python3.10/site-packages/requests/models.py\", line 1024, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/spaces/PatronusAI/enterprise_scenarios_leaderboard/restart\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/user/app/app.py\", line 43, in \n restart_space()\n File \"/home/user/app/app.py\", line 34, in restart_space\n API.restart_space(repo_id=REPO_ID, token=TOKEN)\n File \"/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py\", line 114, in _inner_fn\n return fn(*args, **kwargs)\n File \"/usr/local/lib/python3.10/site-packages/huggingface_hub/hf_api.py\", line 7039, in restart_space\n hf_raise_for_status(r)\n File \"/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py\", line 477, in hf_raise_for_status\n raise _format(HfHubHTTPError, str(e), response) from e\nhuggingface_hub.errors.HfHubHTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/spaces/PatronusAI/enterprise_scenarios_leaderboard/restart\n","replicas":{"requested":1},"devMode":false,"domains":[{"domain":"patronusai-enterprise-scenarios-leaderboard.hf.space","stage":"READY"}]},"title":"Enterprise Scenarios Leaderboard","isLikedByUser":false,"trendingScore":0,"tags":["gradio","leaderboard","region:us"],"featured":false},{"author":"PatronusAI","authorData":{"_id":"64c98cca7fe12ecd0a9f4a3d","avatarUrl":"https://aifasthub.com/avatars/v1/production/uploads/noauth/jOAWAvmqOod2rYsgdxF0w.png","fullname":"Patronus AI","name":"PatronusAI","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":true,"plan":"team","followerCount":87},"colorFrom":"blue","colorTo":"indigo","createdAt":"2025-02-06T21:38:05.000Z","emoji":"🌍","id":"PatronusAI/BLUR-leaderboard","lastModified":"2025-04-02T19:22:26.000Z","likes":3,"pinned":false,"private":false,"sdk":"static","repoType":"space","runtime":{"stage":"RUNNING","hardware":{"current":null,"requested":null},"storage":null,"replicas":{"requested":1,"current":1}},"shortDescription":"BLUR leaderboard.","title":"BLUR Leaderboard","isLikedByUser":false,"ai_short_description":"View leaderboard for tip-of-the-tongue search models","ai_category":"Model Benchmarking","trendingScore":0,"tags":["static","region:us"],"featured":false},{"author":"PatronusAI","authorData":{"_id":"64c98cca7fe12ecd0a9f4a3d","avatarUrl":"https://aifasthub.com/avatars/v1/production/uploads/noauth/jOAWAvmqOod2rYsgdxF0w.png","fullname":"Patronus AI","name":"PatronusAI","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":true,"plan":"team","followerCount":87},"colorFrom":"purple","colorTo":"gray","createdAt":"2024-12-19T04:39:49.000Z","emoji":"🦅","id":"PatronusAI/GLIDER","lastModified":"2024-12-19T16:18:17.000Z","likes":7,"pinned":false,"private":false,"sdk":"gradio","repoType":"space","runtime":{"stage":"RUNTIME_ERROR","hardware":{"current":null,"requested":"cpu-basic"},"storage":null,"gcTimeout":172800,"errorMessage":"Exit code: 1. Reason: >Contact your hosting provider letting them know your web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn't finish. The most likely cause is that something on your server is hogging resources. Additional troubleshooting information here.

\n
\n
\n \n\n \n\n\n \n\n\n\n\n","replicas":{"requested":1},"devMode":false,"domains":[{"domain":"patronusai-glider.hf.space","stage":"READY"}]},"shortDescription":"GLIDER: Grading LLM Interactions and Decisions using Explain","title":"GLIDER","isLikedByUser":false,"ai_short_description":"Evaluate text based on pass criteria and rubric","ai_category":"Text Analysis","trendingScore":0,"tags":["gradio","region:us"],"featured":false},{"author":"PatronusAI","authorData":{"_id":"64c98cca7fe12ecd0a9f4a3d","avatarUrl":"https://aifasthub.com/avatars/v1/production/uploads/noauth/jOAWAvmqOod2rYsgdxF0w.png","fullname":"Patronus AI","name":"PatronusAI","type":"org","isHf":false,"isHfAdmin":false,"isMod":false,"isEnterprise":true,"plan":"team","followerCount":87},"colorFrom":"indigo","colorTo":"blue","createdAt":"2024-07-29T01:02:23.000Z","emoji":"🔥","id":"PatronusAI/LynxDemo","lastModified":"2024-08-15T20:37:34.000Z","likes":6,"pinned":false,"private":false,"sdk":"gradio","repoType":"space","runtime":{"stage":"RUNTIME_ERROR","hardware":{"current":null,"requested":"cpu-basic"},"storage":null,"gcTimeout":172800,"errorMessage":"Scheduling failure: unable to schedule","replicas":{"requested":1},"devMode":false,"domains":[{"domain":"patronusai-lynxdemo.hf.space","stage":"READY"}]},"title":"LynxDemo","isLikedByUser":false,"ai_short_description":"Evaluate answer fidelity to document","ai_category":"Text Analysis","trendingScore":0,"tags":["gradio","region:us"],"featured":false}],"numRepos":5,"currentRepoPage":0,"filters":{},"orgEmailDomain":"patronus.ai","paperView":false}">

AI & ML interests

LLM Evaluation