export const words = { en: { exploreTitle:'Explore Valen',exploreText:'Run the models locally, inspect evaluation results, or integrate the API into your application.',exploreModels:'Model weights ↗',exploreLeaderboard:'JevalKit Leaderboard ↗',exploreDocs:'Documentation ↗',decisionGuidance:'Model probabilities can help guide a decision. Choose thresholds and validate them on your own data.',docs:'Documentation ↗', eyebrow:'THE VALEN API PLAYGROUND', title:'A question. A clear decision.', subtitle:'Ask a question about text, an image, or a video frame. Get structured decision probabilities.', free:'Free API · No key needed', formats:'Yes / No · Choices · Rating', input:'Your input', model:'Model', task:'Output', predicate:'Yes / No', choice:'Choices', score:'Rating', question:'Question', context:'Context · optional', questionPlaceholder:'What would you like Valen to decide?', contextPlaceholder:'Paste the text to assess, or add some context…', choicesLabel:'Choices · one per line', levelsLabel:'Rating levels · low to high, one per line', optionsHint:'2–8 entries, up to 300 characters each.', attach:'Add an image or video', imageHint:'Images up to 3 MB · MP4 / WebM up to 20 MB', remove:'Remove', submit:'Ask Valen', cancel:'Cancel request', privacy:'On submit, your input is sent directly to the Valen API.', result:'Decision', emptyTitle:'Small input. Useful signal.', emptyText:'Your result and probability distribution will appear here.', scoreNote:'Rating is the probability-weighted level index, starting at 0. Five levels span 0–4.', raw:'Response JSON', quota:'Free capacity is limited. On HTTP 429, wait at least one minute before retrying.', examplesTitle:'Start with a question', examplesNote:'Loads an example. You choose when to send.', example0Tag:'TEXT', example0Title:'What does this customer need?', example0Text:'Read a message and identify its intent.', example1Tag:'IMAGE', example1Title:'What is this group called?', example1Text:'Look at the animals and choose a name.', example2Tag:'VIDEO', example2Title:'What color is the sauce?', example2Text:'Decide from the middle frame of a video.', codeTitle:'Make it your own · API example', codeNote:'Code follows your current input. Generating a preview does not call the API.', preview:'Update preview', copy:'Copy Python', copyCurl:'Copy cURL', copied:'Copied', copyFailed:'Select the code and copy it manually.', requestPreview:'Request JSON · image data omitted', network:'Your browser connects directly to api.valen-team.workers.dev. This Space uses the same API as the website.', source:'View source ↗', ready:'Ready', busy:'Deciding…', success:'Complete', error:'Try again', reading:'Reading attachment…',videoNote:'Only a JPEG of the middle frame is sent. A single frame cannot establish motion or event order.', cancelled:'Request cancelled.', waiting:'Valen is deciding…', yes:'Yes', no:'No', confidence:'Confidence', modelId:'Returned model ID', noCode:'Enter a valid question and options to generate your API example.', errors:{model:'Choose a supported model and output type.',question:'Enter a question (up to 1000 characters).',context:'Context can be up to 4000 characters.',options:'Enter 2–8 options, one per line, up to 300 characters each.',image:'Could not read the attachment. Choose JPG, PNG, WebP, or a browser-playable MP4 / WebM.',size:'Images can be up to 3 MB; videos up to 20 MB.',response:'The API returned an unexpected response. Please retry later.',network:'Could not connect to the API. Check your network or proxy and try again.',timeout:'The request timed out after two minutes. Please retry later.',http_400:'HTTP 400 · The API rejected this request. Check the question and options.',http_401:'HTTP 401 · API authentication failed.',http_403:'HTTP 403 · This website is not allowed to call the API.',http_413:'HTTP 413 · The request is too large.',http_429:'HTTP 429 · Free API capacity is limited. Wait at least one minute before retrying.',http_502:'HTTP 502 · The model service could not complete the request.',http_503:'HTTP 503 · The API is not configured or is unavailable.'} }, zh: { exploreTitle:'探索 Valen',exploreText:'本地运行模型、查看评测结果,或将 API 接入你的应用。',exploreModels:'模型权重 ↗',exploreLeaderboard:'评测排行榜 ↗',exploreDocs:'开发者文档 ↗',decisionGuidance:'模型概率可以辅助决策;请在自己的数据上验证并选择合适的阈值。',docs:'开发者文档 ↗',eyebrow:'VALEN API 体验',title:'一个问题,一次清晰判断。',subtitle:'根据文字、图片或视频画面提问,获取结构化决策概率。',free:'免费 API · 无需 Key',formats:'是 / 否 · 选择 · 评分',input:'你的输入',model:'模型',task:'输出类型',predicate:'是 / 否',choice:'选择答案',score:'评分',question:'问题',context:'补充背景 · 可选',questionPlaceholder:'你想让 Valen 判断什么?',contextPlaceholder:'粘贴需要判断的文字,或补充相关信息…',choicesLabel:'候选项 · 每行一个',levelsLabel:'评分档位 · 从低到高,每行一个',optionsHint:'2–8 项,每项最多 300 字符。',attach:'添加图片或视频',imageHint:'图片最大 3 MB · MP4 / WebM 视频最大 20 MB',remove:'移除',submit:'提交判断',cancel:'取消请求',privacy:'提交后,你的输入会直接发送至 Valen API。',result:'判断结果',emptyTitle:'简单输入,清晰信号。',emptyText:'判断结果与各个选项的概率将在这里显示。',scoreNote:'评分按从 0 开始的档位索引进行概率加权。五个档位对应 0–4 分。',raw:'原始响应 JSON',quota:'免费 API 容量有限。遇到 HTTP 429,请至少等待一分钟后重试。',examplesTitle:'从一个问题开始',examplesNote:'点击填入示例,提交时才会请求模型。',example0Tag:'纯文本',example0Title:'这位客户想做什么?',example0Text:'读一段客户消息,判断它表达的意图。',example1Tag:'图片',example1Title:'这群动物应该怎样称呼?',example1Text:'看一张动物图片,选择正确的群体名称。',example2Tag:'视频',example2Title:'左边的酱料是什么颜色?',example2Text:'提取视频中间帧,根据可见画面判断。',codeTitle:'接入你的应用 · API 示例',codeNote:'代码根据当前输入生成。生成预览不会调用 API。',preview:'更新预览',copy:'复制 Python',copyCurl:'复制 cURL',copied:'已复制',copyFailed:'请选中代码后手动复制。',requestPreview:'请求 JSON · 已省略图片数据',network:'浏览器直接连接 api.valen-team.workers.dev。此 Space 与官网共用同一个 API。',source:'查看源码 ↗',ready:'等待提问',busy:'正在判断…',success:'已完成',error:'请求未完成',reading:'正在读取附件…',videoNote:'只发送视频中间帧的 JPEG 图片。单帧无法判断运动或事件顺序。',cancelled:'请求已取消。',waiting:'Valen 正在判断…',yes:'是',no:'否',confidence:'置信度',modelId:'返回的模型标识',noCode:'填写有效的问题与选项后,即可生成对应的 API 示例。', errors:{model:'请选择支持的模型与输出类型。',question:'请填写问题,最多 1000 字符。',context:'补充背景最多 4000 字符。',options:'请输入 2–8 项,每行一个,每项最多 300 字符。',image:'无法读取附件。请选择 JPG、PNG、WebP,或浏览器可播放的 MP4 / WebM。',size:'图片最大 3 MB,视频最大 20 MB。',response:'API 返回的格式异常,请稍后重试。',network:'无法连接 API,请检查当前网络或代理后重试。',timeout:'请求等待超过两分钟,请稍后重试。',http_400:'HTTP 400 · API 拒绝了请求,请检查问题与选项。',http_401:'HTTP 401 · API 鉴权失败。',http_403:'HTTP 403 · 当前网站尚未获准调用 API。',http_413:'HTTP 413 · 请求体积超出限制。',http_429:'HTTP 429 · 免费 API 额度受限,请至少等待一分钟后重试。',http_502:'HTTP 502 · 模型服务暂时无法完成请求。',http_503:'HTTP 503 · API 尚未配置或暂不可用。'} } }; export const examples = { en: [ ['choice', "Which intent does the user's message express?", 'I moved. Can you ship my order to 12 Elm Street instead of the old address?', 'Asks about a charge, invoice or payment\nWants to cancel an order\nWants to change the delivery address\nReceived an item that is broken or damaged\nWants to know where an order is or when it arrives'], ['choice', 'What is a group of these animals called?', 'Answer using only the visible image.', 'pride\nflock\nclowder\ngang'], ['choice', 'What is the color of the sauce in the foil container on the left?', 'Answer using only the visible image.', 'Brown\nWhite\nRed\nOrange'] ], zh: [ ['choice', '这条客户消息表达了什么意图?', '我搬家了,可以把订单寄到榆树街 12 号,而不是原来的地址吗?', '咨询费用、发票或付款\n取消订单\n更改收货地址\n反馈收到的商品破损\n查询订单位置或预计送达时间'], ['choice', '图片中的这群动物应该怎样称呼?', '请仅根据图片中可见的内容回答问题。', '狮群\n羊群\n猫群\n猴群'], ['choice', '左边铝箔容器里的酱料是什么颜色?', '请仅根据视频画面中可见的内容回答问题。', '棕色\n白色\n红色\n橙色'] ] }; export const exampleMedia = [ null, {kind:'image',src:'./cookbook/sheep.jpg',name:'sheep.jpg'}, {kind:'video',src:'./cookbook/momos.mp4',name:'momos.mp4'} ]; export const ratingOptions = { en:'Very low\nLow\nModerate\nHigh\nVery high', zh:'很低\n较低\n中等\n较高\n很高' };