Skip to content

Commit a783ca3

Browse files
committed
fix file select bug
1 parent 7bcf7e9 commit a783ca3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ <h2 class="blog-post-title"><img src="res/dr-convnet-small.png">Chester the AI R
368368

369369
<canvas id="zoom" width="100" height="50" style="width:400px; height:200px;position:absolute; top:0; left:0; display:none;image-rendering:pixelated"></canvas>
370370

371-
<script src="system.js?v=1.191"></script>
371+
<script src="system.js?v=1.192"></script>
372372
<script>
373373
let statusElement;
374374
let status;

system.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ $(function(){
136136
reader.readAsDataURL(f);
137137

138138
await deferred.promise();
139+
139140
}
141+
$("#files").val("");
140142
});
141143

142144
predictionsElement = document.getElementById('predictions');
@@ -225,7 +227,6 @@ async function predict(imgElement, isInitialRun, name) {
225227
}
226228
}
227229
$("#file-container #files").attr("disabled", false)
228-
$("#files").val("");
229230
}
230231
async function predict_real(imgElement, isInitialRun, name) {
231232
status('Predicting...');

0 commit comments

Comments
 (0)