mirror of
https://github.com/Schroedinger-Hat/ImageGoNord-Web.git
synced 2025-10-05 23:52:47 +02:00
Merge pull request #174 from Schroedinger-Hat/feat/172
feat(172): migrate to .org
This commit is contained in:
@@ -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
|
||||
|
@@ -26,7 +26,7 @@ app.register_blueprint(convert_async_api)
|
||||
@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='*')
|
||||
|
@@ -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: [],
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user