Skip to content

Commit 914674f

Browse files
author
Tetsuya Hirota
committed
画像認識画面の修正
1 parent b6afc10 commit 914674f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

views/classify_image.haml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@
1515
var json = JSON.parse(res);
1616
if (json.timestamp > timestamp) {
1717
$("#image-panel img").attr("src", "/images/classify_image.jpg?t=" + Date.now())
18-
//$("#image-panel img").remove();
19-
//$("#image-panel").prependTo('<img src="/images/classify_image.jpg?t=' + Date.now() + '" />');
2018
$("#image_label").text(json.label);
2119
$("#image_score").text(json.score);
2220
timestamp = json.timestamp;
2321
}
2422
},
2523
error: function (xhr, status, err) {
2624
// 失敗の場合の処理
27-
alert(xhr.responseJSON.error.message);
25+
//alert(status);
2826
}
2927
});
3028
setTimeout(imageUpdate, 1000);

0 commit comments

Comments
 (0)