finetune-studio / index.html
qgallouedec's picture
qgallouedec HF Staff
Render tool calls properly, follow the Hub's theme, fix the model link
496db9b
Raw History Blame Contribute Delete
1.59 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Fine-tune an open model on your own conversations. No code, no setup, no hyperparameters to pick."
/>
<title>Finetune Studio</title>
<script>
/*
* The Space's OAuth client id, substituted by the server as it serves this
* file — it's a backend environment variable, and client ids are public by
* design. Left as the placeholder when running locally, which is how the
* app knows to ask for a pasted token instead.
*/
window.OAUTH_CLIENT_ID = "__OAUTH_CLIENT_ID__".startsWith("__") ? "" : "__OAUTH_CLIENT_ID__";
/*
* Resolve the theme before first paint so there is no flash of the wrong one.
* Duplicated from src/hooks/useTheme.ts on purpose: that module can't run this
* early, and the whole point is to beat the first paint. Kept to the same two
* rules — what the Hub says in `__theme`, else the system.
*/
(() => {
const asked = new URLSearchParams(window.location.search).get("__theme");
const dark = asked ? asked === "dark" : window.matchMedia("(prefers-color-scheme: dark)").matches;
document.documentElement.classList.toggle("dark", dark);
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>