Spaces:
Sleeping
Sleeping
Update UI2/calculator.js
Browse files- UI2/calculator.js +1 -1
UI2/calculator.js
CHANGED
|
@@ -289,7 +289,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 289 |
|
| 290 |
try {
|
| 291 |
console.log('Sending prediction request to server:', data);
|
| 292 |
-
const response = await fetch("
|
| 293 |
method: "POST",
|
| 294 |
headers: { "Content-Type": "application/json" },
|
| 295 |
body: JSON.stringify(data),
|
|
|
|
| 289 |
|
| 290 |
try {
|
| 291 |
console.log('Sending prediction request to server:', data);
|
| 292 |
+
const response = await fetch("https://huggingface.co/spaces/AmrGaberr/Injury_Prediction_System.hf.space/predict", {
|
| 293 |
method: "POST",
|
| 294 |
headers: { "Content-Type": "application/json" },
|
| 295 |
body: JSON.stringify(data),
|