Spaces:
Runtime error
Runtime error
Download api/src/utils/logging.ts from supernovagateway/Steel: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/utils/logging.ts
- Command line
-
hf download hf://spaces/supernovagateway/Steel/api/src/utils/logging.ts
-
curl -L -o logging.ts https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/utils/logging.ts
425 Bytes
| export const updateLog = async (logUrl: string, log: any) => { | |
| try { | |
| const response = await fetch(logUrl, { | |
| method: "PUT", | |
| headers: { | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify(log), | |
| }); | |
| if (!response.ok) { | |
| const error = await response.text(); | |
| console.error("Failed to update log", error); | |
| } | |
| } catch (e: unknown) { | |
| console.error(e); | |
| } | |
| }; | |