Backend and model uri are now passed in Dockerfile since the frontend is build within the docker container and served using serve. May add commands to clean up folders later.

This commit is contained in:
K
2025-07-23 01:31:18 +05:30
parent 8ee1f1183c
commit 0c205270ee
4 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const Ai = () => {
const formData = new FormData();
formData.append("image", selectedFile);
const response = await fetch("http://model:8081/predict", {
const response = await fetch("${MODEL_URI}/predict", {
method: "POST",
body: formData,
});