diff --git a/gradio/static/css/style.css b/gradio/static/css/style.css index f0dfd1610c..4ab4d703fa 100644 --- a/gradio/static/css/style.css +++ b/gradio/static/css/style.css @@ -27,12 +27,10 @@ nav img { height: 32px; } #share_row { - display: flex; justify-content: center; margin-bottom: 10px; } #share_form { - display: flex; flex-grow: 1; justify-content: center; align-items: center; @@ -48,7 +46,7 @@ nav img { flex-grow: 1; max-width: 400px; } -#share_complete, #share_form { +#share_row, #share_complete, #share_form { display: none; } #panels { diff --git a/gradio/static/js/interfaces/output/label.js b/gradio/static/js/interfaces/output/label.js index ae40bd48d0..0781de7b96 100644 --- a/gradio/static/js/interfaces/output/label.js +++ b/gradio/static/js/interfaces/output/label.js @@ -9,28 +9,6 @@ const label_output = { init: function() {}, output: function(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(".confidence_intervals > div").empty() if (data.confidences) { diff --git a/gradio/static/js/load_interfaces.js b/gradio/static/js/load_interfaces.js index c3534d831f..5679acdb8a 100644 --- a/gradio/static/js/load_interfaces.js +++ b/gradio/static/js/load_interfaces.js @@ -55,6 +55,9 @@ $.getJSON("static/config.json", function(data) { io_master.input_interface = input_interface; output_interface.io_master = io_master; io_master.output_interface = output_interface; + if (config["share_url"] != "None") { + $("#share_row").css('display', 'flex'); + } }); $('body').on('click', '.flag', function(e) {