mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
remove test data
This commit is contained in:
parent
beb3750f7e
commit
deb8099bb5
@ -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.03064
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
this.target.find(".output_class").html(data["label"])
|
||||
this.target.find(".confidence_intervals > div").empty()
|
||||
if (data.confidences) {
|
||||
|
Loading…
Reference in New Issue
Block a user