From b4a5f9d847a33252c462db5a3b23032691dfdcbf Mon Sep 17 00:00:00 2001 From: sumn2u Date: Thu, 1 Aug 2024 21:27:45 -0500 Subject: [PATCH] fix demo url address --- client/src/SetupPage/index.jsx | 6 +++--- server/app.py | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/client/src/SetupPage/index.jsx b/client/src/SetupPage/index.jsx index 4dafd2b..2a1972a 100644 --- a/client/src/SetupPage/index.jsx +++ b/client/src/SetupPage/index.jsx @@ -111,10 +111,10 @@ export const SetupPage = ({ const handleImageUpload = (images) => { const extractedNames = images.map((image) => { let src = image.preview || image.src - if (src.includes("http://annotate-lab.onrender.com")) { + if (src.includes("http://rocky-badlands-09400-2bb445641857.herokuapp.com")) { src = src.replace( - "http://annotate-lab.onrender.com", - "https://annotate-lab.onrender.com", + "http://rocky-badlands-09400-2bb445641857.herokuapp.com", + "https://rocky-badlands-09400-2bb445641857.herokuapp.com", ) } const selectedClsList = "" || image.selectedClsList // Assuming 'cls' information is not present diff --git a/server/app.py b/server/app.py index dd3162f..3a1980e 100644 --- a/server/app.py +++ b/server/app.py @@ -537,10 +537,10 @@ def download_image_with_annotations(): # Docker container uses port 5000, so replace 5001 with 5000 if "127.0.0.1:5001" in image_url: image_url = image_url.replace("127.0.0.1:5001", "127.0.0.1:5000") - elif "http://annotate-lab.onrender.com" in image_url: + elif "http://rocky-badlands-09400-2bb445641857.herokuapp.com" in image_url: image_url = image_url.replace( - "http://annotate-lab.onrender.com", - "https://annotate-lab.onrender.com", + "http://rocky-badlands-09400-2bb445641857.herokuapp.com", + "https://rocky-badlands-09400-2bb445641857.herokuapp.com", ) response = requests.get(image_url) @@ -766,10 +766,10 @@ def get_image_annotations(): image_url = region.get("image-src") if "127.0.0.1:5001" in image_url: image_url = image_url.replace("127.0.0.1:5001", "127.0.0.1:5000") - elif "http://annotate-lab.onrender.com" in image_url: + elif "http://rocky-badlands-09400-2bb445641857.herokuapp.com" in image_url: image_url = image_url.replace( - "http://annotate-lab.onrender.com", - "https://annotate-lab.onrender.com", + "http://rocky-badlands-09400-2bb445641857.herokuapp.com", + "https://rocky-badlands-09400-2bb445641857.herokuapp.com", ) # Handle NaN values in regions cleaned_regions = cleaned_regions = [ @@ -844,10 +844,10 @@ def download_image_mask(): image_url = image_url.replace( "127.0.0.1:5001", "127.0.0.1:5000" ) - elif "http://annotate-lab.onrender.com" in image_url: + elif "http://rocky-badlands-09400-2bb445641857.herokuapp.com" in image_url: image_url = image_url.replace( - "http://annotate-lab.onrender.com", - "https://annotate-lab.onrender.com", + "http://rocky-badlands-09400-2bb445641857.herokuapp.com", + "https://rocky-badlands-09400-2bb445641857.herokuapp.com", ) response = requests.get(image_url)