Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix demo url address #187

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/src/SetupPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 = [
Expand Down Expand Up @@ -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)
Expand Down
Loading