diff --git a/static/index.js b/static/index.js
index a84a834..b4830de 100644
--- a/static/index.js
+++ b/static/index.js
@@ -243,7 +243,8 @@ host.BrowserHost = class {
swal("Success!", "Modified model has been successfuly saved in ./modified_onnx/", "success");
}
else {
- swal("Error happens!", "You are kindly to create an issue on https://github.com/ZhangGe6/onnx-modifier", "error");
+ // swal("Error happens!", "You are kindly to create an issue on https://github.com/ZhangGe6/onnx-modifier", "error");
+ swal("Error happens!", "You can check the log or kindly create an issue on https://github.com/ZhangGe6/onnx-modifier", "error");
// alert('Error happens, you can find it out or create an issue on https://github.com/ZhangGe6/onnx-modifier')
}
});
diff --git a/static/view.js b/static/view.js
index 58eb634..38a64df 100644
--- a/static/view.js
+++ b/static/view.js
@@ -893,6 +893,7 @@ view.View = class {
}
}
+ // console.log(this._graphs[0].nodes)
// console.log(this.lastViewGraph._addedNode)
}
@@ -1159,6 +1160,7 @@ view.Graph = class extends grapher.Graph {
this._addedNode.get(modelNodeName).attributes.set(attributeName, targetValue)
}
// console.log(this._addedNode)
+ this.view._updateGraph()
}
@@ -1171,6 +1173,7 @@ view.Graph = class extends grapher.Graph {
if (this._addedNode.get(modelNodeName).outputs.has(parameterName)) {
this._addedNode.get(modelNodeName).outputs.get(parameterName)[arg_index] = targetValue
}
+ this.view._updateGraph() // otherwise the changes can not be updated without manully update graph
}
// console.log(this._addedNode)
}
diff --git a/templates/index.html b/templates/index.html
index 00ac008..0c1a830 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -9,7 +9,6 @@
-