Skip to content

Commit 23f2a1c

Browse files
Update VoltageHeatmap.tsx
1 parent 39044e4 commit 23f2a1c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/src/VoltageHeatmap.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export default function VoltageHeatmap({ voltages, loading = false, label, dataC
2828

2929
const fetchHeatmap = async (v: number[], dcBus?: number | null) => {
3030
setFetching(true); setError(null);
31-
try {
32-
const res = await fetch("http://localhost:8080/api/heatmap", {
31+
const HF_SPACE_URL = "https://huggingface.co/spaces/gpu2grid/live";
32+
33+
const res = await fetch(`${HF_SPACE_URL}/api/heatmap`, {
3334
method: "POST",
3435
headers: { "Content-Type": "application/json" },
3536
body: JSON.stringify({ voltages: v, dataCenterBus: dcBus ?? null }),
@@ -109,4 +110,4 @@ export default function VoltageHeatmap({ voltages, loading = false, label, dataC
109110
)}
110111
</div>
111112
);
112-
}
113+
}

0 commit comments

Comments
 (0)