Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def app_function(uploaded_image: Optional[np.ndarray]) -> Tuple[str, Optional[st
|
|
67 |
logger.exception("app_function: Error encoding image. Uploaded image shape: %s. Exception: %s", getattr(uploaded_image, 'shape', 'N/A'), e)
|
68 |
return f"Error encoding image: {e}", None, None, ""
|
69 |
|
70 |
-
payload = {"query_embedding": query_embedding}
|
71 |
headers = {"x-api-key": API_GATEWAY_API_KEY}
|
72 |
logger.info("app_function: Calling API Gateway with payload (embedding sample: %s...)", query_embedding[:5])
|
73 |
|
|
|
67 |
logger.exception("app_function: Error encoding image. Uploaded image shape: %s. Exception: %s", getattr(uploaded_image, 'shape', 'N/A'), e)
|
68 |
return f"Error encoding image: {e}", None, None, ""
|
69 |
|
70 |
+
payload = {"query_embedding": query_embedding, "country_code": "sg"}
|
71 |
headers = {"x-api-key": API_GATEWAY_API_KEY}
|
72 |
logger.info("app_function: Calling API Gateway with payload (embedding sample: %s...)", query_embedding[:5])
|
73 |
|