Spaces:
Running
Running
Download src/main.tsx from thuongvv/TranslateGemma-WebGPU: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/spaces/thuongvv/TranslateGemma-WebGPU/resolve/da5e3bbb013c210943c79e139e16ff5f0d60cd5e/src/main.tsx
- Command line
-
hf download hf://spaces/thuongvv/TranslateGemma-WebGPU@da5e3bbb013c210943c79e139e16ff5f0d60cd5e/src/main.tsx
-
curl -L -o main.tsx https://huggingface.co/spaces/thuongvv/TranslateGemma-WebGPU/resolve/da5e3bbb013c210943c79e139e16ff5f0d60cd5e/src/main.tsx
391 Bytes
| import { StrictMode } from "react"; | |
| import { createRoot } from "react-dom/client"; | |
| import "./index.css"; | |
| import App from "./App.tsx"; | |
| createRoot(document.getElementById("root")!).render( | |
| <StrictMode> | |
| <App /> | |
| </StrictMode> | |
| ); | |
| window.addEventListener("hashchange", () => | |
| window.parent.postMessage( | |
| { | |
| hash: window.location.hash, | |
| }, | |
| "https://huggingface.co" | |
| ) | |
| ); | |