Deva8's picture
Deploy VQA Space with model downloader
bb8f662
raw
history blame contribute delete
442 Bytes
// HuggingFace Spaces backend — permanent public URL
// Replace YOUR-HF-USERNAME with your actual HuggingFace username after deployment
export const API_BASE_URL = "https://YOUR-HF-USERNAME-vqa-backend.hf.space";
export const API_ENDPOINTS = {
HEALTH: "/health",
ANSWER: "/api/answer",
MODELS_INFO: "/api/models/info",
};
// 60s timeout — HF Space may need ~30s to wake from sleep on first request
export const API_TIMEOUT = 60000;