Rename video2game -> GameAnything in repo references
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ hf_oauth_scopes:
|
|
| 14 |
---
|
| 15 |
|
| 16 |
Page where players propose GameAnything-Bench challenges: background questions, a game picker, one form, checks in the browser.
|
| 17 |
-
A submission is a pull request on the private dataset `
|
| 18 |
`refs/<id>/NN.ext`); merge to accept, close to decline. `data.json` sets `submit_url` to the Cloudflare Worker
|
| 19 |
(`gameanything-trial-api`, `/bench/prepare` + `/bench/commit`), so players need no account: the Worker checks the form, the page
|
| 20 |
uploads files straight to Hugging Face storage, and the Worker opens the pull request. With `submit_url` empty the page falls back
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
Page where players propose GameAnything-Bench challenges: background questions, a game picker, one form, checks in the browser.
|
| 17 |
+
A submission is a pull request on the private dataset `GameAnything/gameanything-submissions` (`submissions/<id>.json` plus
|
| 18 |
`refs/<id>/NN.ext`); merge to accept, close to decline. `data.json` sets `submit_url` to the Cloudflare Worker
|
| 19 |
(`gameanything-trial-api`, `/bench/prepare` + `/bench/commit`), so players need no account: the Worker checks the form, the page
|
| 20 |
uploads files straight to Hugging Face storage, and the Worker opens the pull request. With `submit_url` empty the page falls back
|
app.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
// with Hugging Face and the page opens the pull request with their own token (works for organisation members only).
|
| 6 |
import {oauthLoginUrl, oauthHandleRedirectIfPresent, uploadFiles} from "https://cdn.jsdelivr.net/npm/@huggingface/hub@0.18.2/+esm";
|
| 7 |
|
| 8 |
-
const REPO = {type: "dataset", name: "
|
| 9 |
const $ = (s, el = document) => el.querySelector(s), $$ = (s, el = document) => [...el.querySelectorAll(s)];
|
| 10 |
const esc = s => String(s).replace(/[&<>"]/g, c => ({"&": "&", "<": "<", ">": ">", '"': """}[c]));
|
| 11 |
const LOCAL = { // texts only this page needs
|
|
@@ -14,8 +14,8 @@ const LOCAL = { // texts only this page needs
|
|
| 14 |
signed: ["Signed in as", "已登录:"],
|
| 15 |
need_signin: ["Please sign in with Hugging Face first (above the form). What you typed is kept.", "请先用 Hugging Face 登录(在表单上方)。已填的内容会保留。"],
|
| 16 |
sending: ["Submitting…", "正在提交……"],
|
| 17 |
-
no_access: ["Your account cannot write to the submissions repository yet. Ask a maintainer for access to the
|
| 18 |
-
"你的账号还没有提交仓库的写权限,请联系维护者加入
|
| 19 |
drop: ["Click to choose files, or drop them here", "点击选择文件,或拖到这里"],
|
| 20 |
drop_sub: ["png · jpg · webp · mp4 · webm · mov · txt · md", "png · jpg · webp · mp4 · webm · mov · txt · md"],
|
| 21 |
sec_ref: ["Reference", "素材"], sec_task: ["Task", "题目"], sec_you: ["Credit", "署名"],
|
|
|
|
| 5 |
// with Hugging Face and the page opens the pull request with their own token (works for organisation members only).
|
| 6 |
import {oauthLoginUrl, oauthHandleRedirectIfPresent, uploadFiles} from "https://cdn.jsdelivr.net/npm/@huggingface/hub@0.18.2/+esm";
|
| 7 |
|
| 8 |
+
const REPO = {type: "dataset", name: "GameAnything/gameanything-submissions"};
|
| 9 |
const $ = (s, el = document) => el.querySelector(s), $$ = (s, el = document) => [...el.querySelectorAll(s)];
|
| 10 |
const esc = s => String(s).replace(/[&<>"]/g, c => ({"&": "&", "<": "<", ">": ">", '"': """}[c]));
|
| 11 |
const LOCAL = { // texts only this page needs
|
|
|
|
| 14 |
signed: ["Signed in as", "已登录:"],
|
| 15 |
need_signin: ["Please sign in with Hugging Face first (above the form). What you typed is kept.", "请先用 Hugging Face 登录(在表单上方)。已填的内容会保留。"],
|
| 16 |
sending: ["Submitting…", "正在提交……"],
|
| 17 |
+
no_access: ["Your account cannot write to the submissions repository yet. Ask a maintainer for access to the GameAnything organisation.",
|
| 18 |
+
"你的账号还没有提交仓库的写权限,请联系维护者加入 GameAnything 组织。"],
|
| 19 |
drop: ["Click to choose files, or drop them here", "点击选择文件,或拖到这里"],
|
| 20 |
drop_sub: ["png · jpg · webp · mp4 · webm · mov · txt · md", "png · jpg · webp · mp4 · webm · mov · txt · md"],
|
| 21 |
sec_ref: ["Reference", "素材"], sec_task: ["Task", "题目"], sec_you: ["Credit", "署名"],
|
style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
/* Same look as the project home page (
|
| 2 |
serif headlines with a pixel-face accent, cards whose headers are solid gradient bars. Light only, like the home page.
|
| 3 |
The web fonts are optional: every stack falls back to system faces (Google Fonts is slow or blocked in mainland China). */
|
| 4 |
:root {
|
|
|
|
| 1 |
+
/* Same look as the project home page (GameAnything/GameAnything): white ground, violet and indigo from the paper's figures,
|
| 2 |
serif headlines with a pixel-face accent, cards whose headers are solid gradient bars. Light only, like the home page.
|
| 3 |
The web fonts are optional: every stack falls back to system faces (Google Fonts is slow or blocked in mainland China). */
|
| 4 |
:root {
|