mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
Merge branch 'master' of github.com:abidlabs/gradiome
This commit is contained in:
commit
cb444fa4d4
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user