Skip to content

Commit

Permalink
fix file select bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ieee8023 committed Jan 30, 2020
1 parent 7bcf7e9 commit a783ca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h2 class="blog-post-title"><img src="res/dr-convnet-small.png">Chester the AI R

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

<script src="system.js?v=1.191"></script>
<script src="system.js?v=1.192"></script>
<script>
let statusElement;
let status;
Expand Down
3 changes: 2 additions & 1 deletion system.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ $(function(){
reader.readAsDataURL(f);

await deferred.promise();

}
$("#files").val("");
});

predictionsElement = document.getElementById('predictions');
Expand Down Expand Up @@ -225,7 +227,6 @@ async function predict(imgElement, isInitialRun, name) {
}
}
$("#file-container #files").attr("disabled", false)
$("#files").val("");
}
async function predict_real(imgElement, isInitialRun, name) {
status('Predicting...');
Expand Down

0 comments on commit a783ca3

Please sign in to comment.