Spaces:
Running
Running
EmbRACE Viewer: read task_ folders
Browse filesFiles changed (2)
- index.html+6-5
- style.cssDeleted-28
11 unmodified lines121314151617181920212 unmodified lines23323423523623723823924011 unmodified linesand as a static Space in front of the Hugging Face dataset repo.index/web/tasks.json every task, loaded once<split>/trajectory/<Env>/<Task>/infos.json the record of a task, loaded when it is opened<split>/trajectory/<Env>/<Task>/NNN.jpg its frames (split: dataset or benchmark)benchmark/success_region/<Env>/<Task>/... the two region images of a benchmark taskThe data location comes from ?data=<url>, else from the embrace-data meta tag above.?split=dataset|benchmark &env=<Env> &type=0-5 &q=<text> &task=<Env>/<Task> &step=<n>212 unmodified linesfiltered: [], task: null, record: null, step: 0 };const records = new Map();const trajUrl = (t, file) => `${DATA}${t.split}/trajectory/${t.env.id}/${t.stem}/${file}`;const areaUrl = (t, file) => `${DATA}${t.split}/success_region/${t.env.id}/${t.stem}/${file}`;async function loadIndex() {const url = DATA + "index/web/tasks.json";11 unmodified lines121314151617181920212 unmodified lines23323423523623723823924024111 unmodified linesand as a static Space in front of the Hugging Face dataset repo.index/web/tasks.json every task, loaded once<split>/trajectory/<Env>/task_<Task>/infos.json the record of a task, loaded when it is opened<split>/trajectory/<Env>/task_<Task>/NNN.jpg its frames (split: dataset or benchmark)benchmark/success_region/<Env>/task_<Task>/... the two region images of a benchmark taskThe data location comes from ?data=<url>, else from the embrace-data meta tag above.?split=dataset|benchmark &env=<Env> &type=0-5 &q=<text> &task=<Env>/<Task> &step=<n>212 unmodified linesfiltered: [], task: null, record: null, step: 0 };const records = new Map();// On the Hub every task folder carries the prefix task_ (the Hub refuses paths with "/x00").const trajUrl = (t, file) => `${DATA}${t.split}/trajectory/${t.env.id}/task_${t.stem}/${file}`;const areaUrl = (t, file) => `${DATA}${t.split}/success_region/${t.env.id}/task_${t.stem}/${file}`;async function loadIndex() {const url = DATA + "index/web/tasks.json";
12345678910111213141516171819202122232425262728body { padding: 2rem; font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;}
h1 { font-size: 16px; margin-top: 0;}
p { color: rgb(107, 114, 128); font-size: 15px; margin-bottom: 10px; margin-top: 5px;}
.card { max-width: 620px; margin: 0 auto; padding: 16px; border: 1px solid lightgray; border-radius: 16px;}
.card p:last-child { margin-bottom: 0;}index.html+6-5
style.cssDeleted-28