Merge branch 'master' of github.com:abidlabs/gradiome

This commit is contained in:
Abubakar Abid 2019-04-19 03:06:14 -07:00
commit cb444fa4d4
3 changed files with 4 additions and 25 deletions

View File

@ -27,12 +27,10 @@ nav img {
height: 32px; height: 32px;
} }
#share_row { #share_row {
display: flex;
justify-content: center; justify-content: center;
margin-bottom: 10px; margin-bottom: 10px;
} }
#share_form { #share_form {
display: flex;
flex-grow: 1; flex-grow: 1;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -48,7 +46,7 @@ nav img {
flex-grow: 1; flex-grow: 1;
max-width: 400px; max-width: 400px;
} }
#share_complete, #share_form { #share_row, #share_complete, #share_form {
display: none; display: none;
} }
#panels { #panels {

View File

@ -9,28 +9,6 @@ const label_output = {
init: function() {}, init: function() {},
output: function(data) { output: function(data) {
data = JSON.parse(data) data = JSON.parse(data)
data = {
label: "happy, happy, happy",
confidences: [
{
label: "happy, happy, happy",
confidence: 0.5064
},
{
label: "sad",
confidence: 0.2111
},
{
label: "angry, angry, angry",
confidence: 0.0757
},
{
label: "happy, happy, happy",
confidence: 0.001064
}
]
}
this.target.find(".output_class").html(data["label"]) this.target.find(".output_class").html(data["label"])
this.target.find(".confidence_intervals > div").empty() this.target.find(".confidence_intervals > div").empty()
if (data.confidences) { if (data.confidences) {

View File

@ -55,6 +55,9 @@ $.getJSON("static/config.json", function(data) {
io_master.input_interface = input_interface; io_master.input_interface = input_interface;
output_interface.io_master = io_master; output_interface.io_master = io_master;
io_master.output_interface = output_interface; io_master.output_interface = output_interface;
if (config["share_url"] != "None") {
$("#share_row").css('display', 'flex');
}
}); });
$('body').on('click', '.flag', function(e) { $('body').on('click', '.flag', function(e) {