1 parent b6afc10 commit 914674fCopy full SHA for 914674f
1 file changed
views/classify_image.haml
@@ -15,16 +15,14 @@
15
var json = JSON.parse(res);
16
if (json.timestamp > timestamp) {
17
$("#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() + '" />');
20
$("#image_label").text(json.label);
21
$("#image_score").text(json.score);
22
timestamp = json.timestamp;
23
}
24
},
25
error: function (xhr, status, err) {
26
// 失敗の場合の処理
27
- alert(xhr.responseJSON.error.message);
+ //alert(status);
28
29
});
30
setTimeout(imageUpdate, 1000);
0 commit comments