Fix: FUCK OMBAASE MESSED UP.

This commit is contained in:
2025-02-23 11:38:02 +05:30
parent ae1b2566a3
commit 7e204690d3
2 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -33,9 +33,9 @@ const Ai = () => {
throw new Error("Prediction request failed");
}
const data = await response.json();
const result = await response.json();
// Assuming the API returns a JSON object with an "output" field.
setPrediction(data.output || "No prediction returned");
setPrediction(result.data || "No prediction returned");
} catch (err) {
console.error("Error during prediction:", err);
setError(err.message);