Spaces:
Running
Running
| // src/agent/runner.js | |
| import { api } from "../apiClient"; | |
| export async function runCode(code, filename = "main.py") { | |
| const res = await api.post("/execute", { code, filename }); | |
| return res.data; // { output, error } | |
| } | |