Update index.html
Browse files- index.html +15 -3
index.html
CHANGED
@@ -111,10 +111,22 @@
|
|
111 |
function loadModel(model_name){
|
112 |
main(model_name)
|
113 |
}
|
114 |
-
|
115 |
-
</script>
|
116 |
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
<div id="result"></div>
|
119 |
<br><br>
|
120 |
<input type="text" id="textInput" value ="Hello Huggingface." placeholder="Enter some text here...">
|
|
|
111 |
function loadModel(model_name){
|
112 |
main(model_name)
|
113 |
}
|
|
|
|
|
114 |
|
115 |
+
function create_button(label, model_name) {
|
116 |
+
// ボタンの作成
|
117 |
+
const button = document.createElement('button');
|
118 |
+
button.textContent = label;
|
119 |
+
|
120 |
+
// クリックイベントハンドラの設定
|
121 |
+
button.onclick = function() {
|
122 |
+
loadModel(model_name);
|
123 |
+
};
|
124 |
+
|
125 |
+
const bt1=create_button("ljspeech","ljspeech_sim")
|
126 |
+
document.getElementById('tempature_label').appendChild(bt1)
|
127 |
+
</script>
|
128 |
+
<div id="buttons"></div>
|
129 |
+
|
130 |
<div id="result"></div>
|
131 |
<br><br>
|
132 |
<input type="text" id="textInput" value ="Hello Huggingface." placeholder="Enter some text here...">
|