Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ API_KEY = os.environ.get("crosswalk_detection_model_API_key_Nitish_Borthakur")
|
|
12 |
API_URL = f"https://predict.app.landing.ai/inference/v1/predict?endpoint_id={ENDPOINT_ID}"
|
13 |
|
14 |
def predict_from_landinglens(image_path):
|
15 |
-
# Load and keep original
|
16 |
original_img = Image.open(image_path).convert("RGB")
|
17 |
img_array = np.array(original_img)
|
18 |
|
|
|
12 |
API_URL = f"https://predict.app.landing.ai/inference/v1/predict?endpoint_id={ENDPOINT_ID}"
|
13 |
|
14 |
def predict_from_landinglens(image_path):
|
15 |
+
# Load and keep original imag
|
16 |
original_img = Image.open(image_path).convert("RGB")
|
17 |
img_array = np.array(original_img)
|
18 |
|