From b7ee3bc857e0a6c67664b386d2d731e342905730 Mon Sep 17 00:00:00 2001 From: Miki Lombardi Date: Wed, 2 Oct 2024 17:44:36 +0000 Subject: [PATCH] feat(172): migrate to .org --- src/ign-api/requirements.txt | 2 +- src/ign-api/run.py | 2 +- src/ign-frontend/src/components/Demo.vue | 2 +- src/ign-frontend/src/views/GoWild.vue | 2 +- src/ign-frontend/src/views/Home.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ign-api/requirements.txt b/src/ign-api/requirements.txt index e64a9ee..12124ee 100755 --- a/src/ign-api/requirements.txt +++ b/src/ign-api/requirements.txt @@ -12,4 +12,4 @@ numpy==1.24.4 torch==2.2.2 torch-vision==0.1.6.dev0 torchvision==0.17.2 -scikit-image=0.19.2 +scikit-image==0.19.2 diff --git a/src/ign-api/run.py b/src/ign-api/run.py index b96e83b..5d9a9b2 100755 --- a/src/ign-api/run.py +++ b/src/ign-api/run.py @@ -26,7 +26,7 @@ @app.route(API_VERSION + "/status", methods=["GET"]) @cross_origin(origin='*') def get_api_status(): - return jsonify({'ok': True, 'count': conn.get('conversion_count')}) + return jsonify({'ok': True, 'count': str(conn.get('conversion_count'))}) @app.route(API_VERSION + "/quantize", methods=["POST"]) @cross_origin(origin='*') diff --git a/src/ign-frontend/src/components/Demo.vue b/src/ign-frontend/src/components/Demo.vue index e120eff..35652a6 100755 --- a/src/ign-frontend/src/components/Demo.vue +++ b/src/ign-frontend/src/components/Demo.vue @@ -117,7 +117,7 @@ export default Vue.component('Demo', { }, data() { return { - apiUrl: 'https://ign-api.schrodinger-hat.it/v1', + apiUrl: 'https://ign-api.schroedinger-hat.org/v1', img: null, imgData: null, selectedColor: [], diff --git a/src/ign-frontend/src/views/GoWild.vue b/src/ign-frontend/src/views/GoWild.vue index 0065fd2..d27e18a 100644 --- a/src/ign-frontend/src/views/GoWild.vue +++ b/src/ign-frontend/src/views/GoWild.vue @@ -109,7 +109,7 @@ export default { mounted() { const self = this; setInterval(() => { - fetch('https://ign-api.schrodinger-hat.it/v1/status') + fetch('https://ign-api.schroedinger-hat.org/v1/status') .then(() => { self.apiStatus = 'success'; }) .catch(() => { self.apiStatus = 'failed'; }); }, 8000); diff --git a/src/ign-frontend/src/views/Home.vue b/src/ign-frontend/src/views/Home.vue index ca3b466..a0dc1f2 100755 --- a/src/ign-frontend/src/views/Home.vue +++ b/src/ign-frontend/src/views/Home.vue @@ -111,7 +111,7 @@ export default { mounted() { const self = this; setInterval(() => { - fetch('https://ign-api.schrodinger-hat.it/v1/status') + fetch('https://ign-api.schroedinger-hat.org/v1/status') .then((r) => { self.apiStatus = 'success'; r.json().then((j) => { self.apiCount = j.count; }); }) .catch(() => { self.apiStatus = 'failed'; }); }, 8000);