Skip to content

Commit

Permalink
Removed the accuracy from the WebUI
Browse files Browse the repository at this point in the history
Removed the accuracy from the WebUI
  • Loading branch information
giuseppetotaro committed Jun 15, 2017
1 parent b7d7f0c commit 02cb060
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions webui/app/static/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="row">
<div class="col-lg-6 col-md-6">
Expand All @@ -69,10 +68,10 @@
<button type="button" class="btn btn-primary update-model"
style="float: right !important; display: none; margin-top: 4%;">Update Model</button>
</div>
<div class="col-lg-2 col-md-2">
<!--<div class="col-lg-2 col-md-2">
<span id="model-accuracy" style="display: block; margin-top: 8%;"><b>Accuracy : </b>
<span id="model-accuracy-val">0.0</span></span>
</div>
</div>-->
</div>
</div>
<!-- /.navbar-header -->
Expand All @@ -92,7 +91,7 @@
<!-- /input-group -->
</li>
<li>
<a href="/explorer/"><i class="fa fa-dashboard fa-fw"></i> Build New Model</a>
<a id="create-new" href="classify/createnew/"><i class="fa fa-dashboard fa-fw"></i> Create a New Model</a>
</li>
</ul>
</div>
Expand Down Expand Up @@ -207,6 +206,13 @@
});
});

$('#create-new').click(function (e) {
e.preventDefault();
$.get("classify/createnew/", function (data) {
alert("A new model has been created!");
});
});

$('.update-model').click(function (e) {
e.preventDefault();
var form_data = $('#form-ann').serialize();
Expand All @@ -215,8 +221,8 @@
data: form_data, // Form data
success:function(result)
{
alert('Model has been updated with accuracy: ' + result);
$('#model-accuracy-val').html(result);
//alert('Model has been updated with accuracy: ' + result);
//$('#model-accuracy-val').html(result);
$('#search-page-wrapper').css('display', 'none');
$('.update-model').css('display', 'none');
},
Expand Down Expand Up @@ -250,8 +256,8 @@
cache: false,
success:function(result)
{
alert('Model has been imported with accuracy: ' + result);
$('#model-accuracy-val').html(result);
//alert('Model has been imported with accuracy: ' + result);
//$('#model-accuracy-val').html(result);
$('#search-page-wrapper').css('display', 'none');
},
error:function(result)
Expand Down

0 comments on commit 02cb060

Please sign in to comment.