Spaces:
Running
Running
Download frontends/react/src/pyodide.worker.ts from nhamid289/optimization-dev: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/frontends/react/src/pyodide.worker.ts
- Command line
-
hf download hf://spaces/nhamid289/optimization-dev/frontends/react/src/pyodide.worker.ts
-
curl -L -o pyodide.worker.ts https://huggingface.co/spaces/nhamid289/optimization-dev/resolve/main/frontends/react/src/pyodide.worker.ts
398 Bytes
| import { exposePython } from "@elvis/pyodide/worker"; | |
| import managerCode from "../../../backend/src/manager.py?raw"; | |
| import logicCode from "../../../backend/src/logic.py?raw"; | |
| import algorithmsSpec from "../../../backend/src/algorithms.json?raw"; | |
| exposePython({ | |
| packages: ["numpy", "sympy"], | |
| files: { "manager.py": managerCode, "logic.py": logicCode, "algorithms.json": algorithmsSpec }, | |
| }); | |