gradio-leaderboard 0.0.12rc0__py3-none-any.whl → 0.0.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gradio_leaderboard/leaderboard.pyi +79 -66
- gradio_leaderboard/templates/component/index.js +30049 -25763
- gradio_leaderboard/templates/component/style.css +1 -1
- gradio_leaderboard/templates/example/index.js +201 -139
- {gradio_leaderboard-0.0.12rc0.dist-info → gradio_leaderboard-0.0.13.dist-info}/METADATA +2 -2
- gradio_leaderboard-0.0.13.dist-info/RECORD +10 -0
- gradio_leaderboard/templates/component/__vite-browser-external-2447137e.js +0 -4
- gradio_leaderboard/templates/component/wrapper-6f348d45-19fa94bf.js +0 -2453
- gradio_leaderboard-0.0.12rc0.dist-info/RECORD +0 -12
- {gradio_leaderboard-0.0.12rc0.dist-info → gradio_leaderboard-0.0.13.dist-info}/WHEEL +0 -0
@@ -1,50 +1,63 @@
|
|
1
1
|
const {
|
2
|
-
SvelteComponent:
|
3
|
-
|
2
|
+
SvelteComponent: j,
|
3
|
+
append_hydration: y,
|
4
4
|
attr: b,
|
5
|
-
|
5
|
+
children: g,
|
6
|
+
claim_element: d,
|
7
|
+
claim_space: w,
|
8
|
+
claim_text: I,
|
9
|
+
destroy_each: V,
|
6
10
|
detach: a,
|
7
|
-
element:
|
8
|
-
empty:
|
9
|
-
ensure_array_like:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
element: m,
|
12
|
+
empty: p,
|
13
|
+
ensure_array_like: v,
|
14
|
+
get_svelte_dataset: z,
|
15
|
+
init: F,
|
16
|
+
insert_hydration: h,
|
17
|
+
listen: E,
|
18
|
+
noop: k,
|
19
|
+
run_all: G,
|
20
|
+
safe_not_equal: H,
|
21
|
+
space: B,
|
22
|
+
text: L,
|
23
|
+
toggle_class: o
|
19
24
|
} = window.__gradio__svelte__internal;
|
20
|
-
function
|
25
|
+
function q(f, e, l) {
|
21
26
|
const t = f.slice();
|
22
27
|
return t[9] = e[l], t[11] = l, t;
|
23
28
|
}
|
24
|
-
function
|
29
|
+
function C(f, e, l) {
|
25
30
|
const t = f.slice();
|
26
31
|
return t[12] = e[l], t[14] = l, t;
|
27
32
|
}
|
28
|
-
function
|
33
|
+
function J(f) {
|
29
34
|
let e, l, t;
|
30
|
-
function
|
35
|
+
function i(s, n) {
|
31
36
|
return typeof /*loaded_value*/
|
32
|
-
s[5] == "string" ?
|
37
|
+
s[5] == "string" ? M : K;
|
33
38
|
}
|
34
|
-
let
|
39
|
+
let c = i(f)(f);
|
35
40
|
return {
|
36
41
|
c() {
|
37
|
-
e =
|
42
|
+
e = m("div"), c.c(), this.h();
|
43
|
+
},
|
44
|
+
l(s) {
|
45
|
+
e = d(s, "DIV", { class: !0 });
|
46
|
+
var n = g(e);
|
47
|
+
c.l(n), n.forEach(a), this.h();
|
48
|
+
},
|
49
|
+
h() {
|
50
|
+
b(e, "class", "svelte-1bq8l1x"), o(
|
38
51
|
e,
|
39
52
|
"table",
|
40
53
|
/*type*/
|
41
54
|
f[1] === "table"
|
42
|
-
),
|
55
|
+
), o(
|
43
56
|
e,
|
44
57
|
"gallery",
|
45
58
|
/*type*/
|
46
59
|
f[1] === "gallery"
|
47
|
-
),
|
60
|
+
), o(
|
48
61
|
e,
|
49
62
|
"selected",
|
50
63
|
/*selected*/
|
@@ -52,14 +65,14 @@ function I(f) {
|
|
52
65
|
);
|
53
66
|
},
|
54
67
|
m(s, n) {
|
55
|
-
|
56
|
-
|
68
|
+
h(s, e, n), c.m(e, null), l || (t = [
|
69
|
+
E(
|
57
70
|
e,
|
58
71
|
"mouseenter",
|
59
72
|
/*mouseenter_handler*/
|
60
73
|
f[7]
|
61
74
|
),
|
62
|
-
|
75
|
+
E(
|
63
76
|
e,
|
64
77
|
"mouseleave",
|
65
78
|
/*mouseleave_handler*/
|
@@ -68,20 +81,20 @@ function I(f) {
|
|
68
81
|
], l = !0);
|
69
82
|
},
|
70
83
|
p(s, n) {
|
71
|
-
|
72
|
-
2 &&
|
84
|
+
c.p(s, n), n & /*type*/
|
85
|
+
2 && o(
|
73
86
|
e,
|
74
87
|
"table",
|
75
88
|
/*type*/
|
76
89
|
s[1] === "table"
|
77
90
|
), n & /*type*/
|
78
|
-
2 &&
|
91
|
+
2 && o(
|
79
92
|
e,
|
80
93
|
"gallery",
|
81
94
|
/*type*/
|
82
95
|
s[1] === "gallery"
|
83
96
|
), n & /*selected*/
|
84
|
-
4 &&
|
97
|
+
4 && o(
|
85
98
|
e,
|
86
99
|
"selected",
|
87
100
|
/*selected*/
|
@@ -89,167 +102,213 @@ function I(f) {
|
|
89
102
|
);
|
90
103
|
},
|
91
104
|
d(s) {
|
92
|
-
s && a(e),
|
105
|
+
s && a(e), c.d(), l = !1, G(t);
|
93
106
|
}
|
94
107
|
};
|
95
108
|
}
|
96
|
-
function
|
97
|
-
let e, l, t =
|
109
|
+
function K(f) {
|
110
|
+
let e, l, t = v(
|
98
111
|
/*loaded_value*/
|
99
112
|
f[5].slice(0, 3)
|
100
|
-
),
|
101
|
-
for (let
|
102
|
-
c
|
103
|
-
let
|
113
|
+
), i = [];
|
114
|
+
for (let c = 0; c < t.length; c += 1)
|
115
|
+
i[c] = T(q(f, t, c));
|
116
|
+
let r = (
|
104
117
|
/*value*/
|
105
|
-
f[0].length > 3 &&
|
118
|
+
f[0].length > 3 && A(f)
|
106
119
|
);
|
107
120
|
return {
|
108
121
|
c() {
|
109
|
-
e =
|
110
|
-
for (let
|
111
|
-
c
|
112
|
-
l =
|
113
|
-
},
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
122
|
+
e = m("table");
|
123
|
+
for (let c = 0; c < i.length; c += 1)
|
124
|
+
i[c].c();
|
125
|
+
l = B(), r && r.c(), this.h();
|
126
|
+
},
|
127
|
+
l(c) {
|
128
|
+
e = d(c, "TABLE", { class: !0 });
|
129
|
+
var s = g(e);
|
130
|
+
for (let n = 0; n < i.length; n += 1)
|
131
|
+
i[n].l(s);
|
132
|
+
l = w(s), r && r.l(s), s.forEach(a), this.h();
|
133
|
+
},
|
134
|
+
h() {
|
135
|
+
b(e, "class", " svelte-1bq8l1x");
|
136
|
+
},
|
137
|
+
m(c, s) {
|
138
|
+
h(c, e, s);
|
139
|
+
for (let n = 0; n < i.length; n += 1)
|
140
|
+
i[n] && i[n].m(e, null);
|
141
|
+
y(e, l), r && r.m(e, null);
|
142
|
+
},
|
143
|
+
p(c, s) {
|
121
144
|
if (s & /*loaded_value*/
|
122
145
|
32) {
|
123
|
-
t =
|
146
|
+
t = v(
|
124
147
|
/*loaded_value*/
|
125
|
-
|
148
|
+
c[5].slice(0, 3)
|
126
149
|
);
|
127
150
|
let n;
|
128
151
|
for (n = 0; n < t.length; n += 1) {
|
129
|
-
const
|
130
|
-
|
152
|
+
const u = q(c, t, n);
|
153
|
+
i[n] ? i[n].p(u, s) : (i[n] = T(u), i[n].c(), i[n].m(e, l));
|
131
154
|
}
|
132
|
-
for (; n <
|
133
|
-
|
134
|
-
|
155
|
+
for (; n < i.length; n += 1)
|
156
|
+
i[n].d(1);
|
157
|
+
i.length = t.length;
|
135
158
|
}
|
136
159
|
/*value*/
|
137
|
-
|
160
|
+
c[0].length > 3 ? r ? r.p(c, s) : (r = A(c), r.c(), r.m(e, null)) : r && (r.d(1), r = null);
|
138
161
|
},
|
139
|
-
d(
|
140
|
-
|
162
|
+
d(c) {
|
163
|
+
c && a(e), V(i, c), r && r.d();
|
141
164
|
}
|
142
165
|
};
|
143
166
|
}
|
144
|
-
function
|
167
|
+
function M(f) {
|
145
168
|
let e;
|
146
169
|
return {
|
147
170
|
c() {
|
148
|
-
e =
|
171
|
+
e = L(
|
172
|
+
/*loaded_value*/
|
173
|
+
f[5]
|
174
|
+
);
|
175
|
+
},
|
176
|
+
l(l) {
|
177
|
+
e = I(
|
178
|
+
l,
|
149
179
|
/*loaded_value*/
|
150
180
|
f[5]
|
151
181
|
);
|
152
182
|
},
|
153
183
|
m(l, t) {
|
154
|
-
|
184
|
+
h(l, e, t);
|
155
185
|
},
|
156
|
-
p:
|
186
|
+
p: k,
|
157
187
|
d(l) {
|
158
188
|
l && a(e);
|
159
189
|
}
|
160
190
|
};
|
161
191
|
}
|
162
|
-
function
|
163
|
-
let e
|
192
|
+
function D(f) {
|
193
|
+
let e, l = (
|
194
|
+
/*cell*/
|
195
|
+
f[12] + ""
|
196
|
+
), t;
|
164
197
|
return {
|
165
198
|
c() {
|
166
|
-
e =
|
167
|
-
f[12]}`, b(e, "class", "svelte-1bq8l1x");
|
199
|
+
e = m("td"), t = L(l), this.h();
|
168
200
|
},
|
169
|
-
|
170
|
-
|
201
|
+
l(i) {
|
202
|
+
e = d(i, "TD", { class: !0 });
|
203
|
+
var r = g(e);
|
204
|
+
t = I(r, l), r.forEach(a), this.h();
|
171
205
|
},
|
172
|
-
|
173
|
-
|
174
|
-
|
206
|
+
h() {
|
207
|
+
b(e, "class", "svelte-1bq8l1x");
|
208
|
+
},
|
209
|
+
m(i, r) {
|
210
|
+
h(i, e, r), y(e, t);
|
211
|
+
},
|
212
|
+
p: k,
|
213
|
+
d(i) {
|
214
|
+
i && a(e);
|
175
215
|
}
|
176
216
|
};
|
177
217
|
}
|
178
|
-
function
|
179
|
-
let e;
|
218
|
+
function N(f) {
|
219
|
+
let e, l = "…";
|
180
220
|
return {
|
181
221
|
c() {
|
182
|
-
e =
|
222
|
+
e = m("td"), e.textContent = l, this.h();
|
183
223
|
},
|
184
|
-
|
185
|
-
|
224
|
+
l(t) {
|
225
|
+
e = d(t, "TD", { class: !0, "data-svelte-h": !0 }), z(e) !== "svelte-1o35md4" && (e.textContent = l), this.h();
|
186
226
|
},
|
187
|
-
|
188
|
-
|
227
|
+
h() {
|
228
|
+
b(e, "class", "svelte-1bq8l1x");
|
229
|
+
},
|
230
|
+
m(t, i) {
|
231
|
+
h(t, e, i);
|
232
|
+
},
|
233
|
+
d(t) {
|
234
|
+
t && a(e);
|
189
235
|
}
|
190
236
|
};
|
191
237
|
}
|
192
|
-
function
|
193
|
-
let e, l, t =
|
238
|
+
function T(f) {
|
239
|
+
let e, l, t = v(
|
194
240
|
/*row*/
|
195
241
|
f[9].slice(0, 3)
|
196
|
-
),
|
197
|
-
for (let
|
198
|
-
c
|
199
|
-
let
|
242
|
+
), i = [];
|
243
|
+
for (let c = 0; c < t.length; c += 1)
|
244
|
+
i[c] = D(C(f, t, c));
|
245
|
+
let r = (
|
200
246
|
/*row*/
|
201
|
-
f[9].length > 3 &&
|
247
|
+
f[9].length > 3 && N()
|
202
248
|
);
|
203
249
|
return {
|
204
250
|
c() {
|
205
|
-
e =
|
206
|
-
for (let
|
207
|
-
c
|
208
|
-
l =
|
209
|
-
},
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
251
|
+
e = m("tr");
|
252
|
+
for (let c = 0; c < i.length; c += 1)
|
253
|
+
i[c].c();
|
254
|
+
l = B(), r && r.c();
|
255
|
+
},
|
256
|
+
l(c) {
|
257
|
+
e = d(c, "TR", {});
|
258
|
+
var s = g(e);
|
259
|
+
for (let n = 0; n < i.length; n += 1)
|
260
|
+
i[n].l(s);
|
261
|
+
l = w(s), r && r.l(s), s.forEach(a);
|
262
|
+
},
|
263
|
+
m(c, s) {
|
264
|
+
h(c, e, s);
|
265
|
+
for (let n = 0; n < i.length; n += 1)
|
266
|
+
i[n] && i[n].m(e, null);
|
267
|
+
y(e, l), r && r.m(e, null);
|
268
|
+
},
|
269
|
+
p(c, s) {
|
217
270
|
if (s & /*loaded_value*/
|
218
271
|
32) {
|
219
|
-
t =
|
272
|
+
t = v(
|
220
273
|
/*row*/
|
221
|
-
|
274
|
+
c[9].slice(0, 3)
|
222
275
|
);
|
223
276
|
let n;
|
224
277
|
for (n = 0; n < t.length; n += 1) {
|
225
|
-
const
|
226
|
-
|
278
|
+
const u = C(c, t, n);
|
279
|
+
i[n] ? i[n].p(u, s) : (i[n] = D(u), i[n].c(), i[n].m(e, l));
|
227
280
|
}
|
228
|
-
for (; n <
|
229
|
-
|
230
|
-
|
281
|
+
for (; n < i.length; n += 1)
|
282
|
+
i[n].d(1);
|
283
|
+
i.length = t.length;
|
231
284
|
}
|
232
285
|
},
|
233
|
-
d(
|
234
|
-
|
286
|
+
d(c) {
|
287
|
+
c && a(e), V(i, c), r && r.d();
|
235
288
|
}
|
236
289
|
};
|
237
290
|
}
|
238
|
-
function
|
291
|
+
function A(f) {
|
239
292
|
let e;
|
240
293
|
return {
|
241
294
|
c() {
|
242
|
-
e =
|
295
|
+
e = m("div"), this.h();
|
296
|
+
},
|
297
|
+
l(l) {
|
298
|
+
e = d(l, "DIV", { class: !0 }), g(e).forEach(a), this.h();
|
299
|
+
},
|
300
|
+
h() {
|
301
|
+
b(e, "class", "overlay svelte-1bq8l1x"), o(
|
243
302
|
e,
|
244
303
|
"odd",
|
245
304
|
/*index*/
|
246
305
|
f[3] % 2 != 0
|
247
|
-
),
|
306
|
+
), o(
|
248
307
|
e,
|
249
308
|
"even",
|
250
309
|
/*index*/
|
251
310
|
f[3] % 2 == 0
|
252
|
-
),
|
311
|
+
), o(
|
253
312
|
e,
|
254
313
|
"button",
|
255
314
|
/*type*/
|
@@ -257,23 +316,23 @@ function C(f) {
|
|
257
316
|
);
|
258
317
|
},
|
259
318
|
m(l, t) {
|
260
|
-
|
319
|
+
h(l, e, t);
|
261
320
|
},
|
262
321
|
p(l, t) {
|
263
322
|
t & /*index*/
|
264
|
-
8 &&
|
323
|
+
8 && o(
|
265
324
|
e,
|
266
325
|
"odd",
|
267
326
|
/*index*/
|
268
327
|
l[3] % 2 != 0
|
269
328
|
), t & /*index*/
|
270
|
-
8 &&
|
329
|
+
8 && o(
|
271
330
|
e,
|
272
331
|
"even",
|
273
332
|
/*index*/
|
274
333
|
l[3] % 2 == 0
|
275
334
|
), t & /*type*/
|
276
|
-
2 &&
|
335
|
+
2 && o(
|
277
336
|
e,
|
278
337
|
"button",
|
279
338
|
/*type*/
|
@@ -285,51 +344,54 @@ function C(f) {
|
|
285
344
|
}
|
286
345
|
};
|
287
346
|
}
|
288
|
-
function
|
347
|
+
function O(f) {
|
289
348
|
let e, l = (
|
290
349
|
/*loaded*/
|
291
|
-
f[6] &&
|
350
|
+
f[6] && J(f)
|
292
351
|
);
|
293
352
|
return {
|
294
353
|
c() {
|
295
|
-
l && l.c(), e =
|
354
|
+
l && l.c(), e = p();
|
355
|
+
},
|
356
|
+
l(t) {
|
357
|
+
l && l.l(t), e = p();
|
296
358
|
},
|
297
|
-
m(t,
|
298
|
-
l && l.m(t,
|
359
|
+
m(t, i) {
|
360
|
+
l && l.m(t, i), h(t, e, i);
|
299
361
|
},
|
300
|
-
p(t, [
|
362
|
+
p(t, [i]) {
|
301
363
|
/*loaded*/
|
302
|
-
t[6] && l.p(t,
|
364
|
+
t[6] && l.p(t, i);
|
303
365
|
},
|
304
|
-
i:
|
305
|
-
o:
|
366
|
+
i: k,
|
367
|
+
o: k,
|
306
368
|
d(t) {
|
307
369
|
t && a(e), l && l.d(t);
|
308
370
|
}
|
309
371
|
};
|
310
372
|
}
|
311
|
-
function
|
312
|
-
let { value: t } = e, { type:
|
313
|
-
const
|
314
|
-
return f.$$set = (
|
315
|
-
"value" in
|
373
|
+
function P(f, e, l) {
|
374
|
+
let { value: t } = e, { type: i } = e, { selected: r = !1 } = e, { index: c } = e, s = !1, n = t, u = Array.isArray(n);
|
375
|
+
const R = () => l(4, s = !0), S = () => l(4, s = !1);
|
376
|
+
return f.$$set = (_) => {
|
377
|
+
"value" in _ && l(0, t = _.value), "type" in _ && l(1, i = _.type), "selected" in _ && l(2, r = _.selected), "index" in _ && l(3, c = _.index);
|
316
378
|
}, [
|
317
379
|
t,
|
318
|
-
c,
|
319
|
-
o,
|
320
380
|
i,
|
381
|
+
r,
|
382
|
+
c,
|
321
383
|
s,
|
322
384
|
n,
|
323
|
-
|
324
|
-
|
325
|
-
|
385
|
+
u,
|
386
|
+
R,
|
387
|
+
S
|
326
388
|
];
|
327
389
|
}
|
328
|
-
class
|
390
|
+
class Q extends j {
|
329
391
|
constructor(e) {
|
330
|
-
super(),
|
392
|
+
super(), F(this, e, P, O, H, { value: 0, type: 1, selected: 2, index: 3 });
|
331
393
|
}
|
332
394
|
}
|
333
395
|
export {
|
334
|
-
|
396
|
+
Q as default
|
335
397
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: gradio_leaderboard
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.13
|
4
4
|
Summary: Super fast , batteries included Leaderboard component ⚡️
|
5
5
|
Author-email: YOUR NAME <YOUREMAIL@domain.com>
|
6
6
|
License-Expression: MIT
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
20
20
|
Requires-Python: >=3.8
|
21
|
-
Requires-Dist: gradio<
|
21
|
+
Requires-Dist: gradio<6.0,>=4.0
|
22
22
|
Provides-Extra: dev
|
23
23
|
Requires-Dist: build; extra == 'dev'
|
24
24
|
Requires-Dist: twine; extra == 'dev'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
gradio_leaderboard/__init__.py,sha256=-ALcJ_utr02n3qh2Q75HhGx-tCbdvOwRlBK5oopXPuQ,158
|
2
|
+
gradio_leaderboard/leaderboard.py,sha256=wrQif4F9BNNc2YbyujMl0TyvukJWRr3dZLEyet7GlKw,19251
|
3
|
+
gradio_leaderboard/leaderboard.pyi,sha256=e0pjYHOt5uNQpapIF8A_mjx0-8jXP_PNHZDBrYZ4ajY,35856
|
4
|
+
gradio_leaderboard/templates/component/index.js,sha256=Q01IVsBLBUBnPFetboqM5bxwkFRL9zjsalIVXqnkt48,1083693
|
5
|
+
gradio_leaderboard/templates/component/style.css,sha256=_Mox384EDt4E6U6jSOVQ48P5WyhNMhhdoXI-sOIzFxs,1500930
|
6
|
+
gradio_leaderboard/templates/example/index.js,sha256=PbOH5yXXJTp0yw_eZr_vjbGlQ7_eiUrpVo9gIA34GQQ,7339
|
7
|
+
gradio_leaderboard/templates/example/style.css,sha256=9JOKe1Y54384SfbzosdLED2IwslFs_2uESv6z-3qadY,1096
|
8
|
+
gradio_leaderboard-0.0.13.dist-info/METADATA,sha256=EanPyJyI0wcf16W1ewpXiGMiM2CU9znKfIEJ2ZTPTms,15902
|
9
|
+
gradio_leaderboard-0.0.13.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
10
|
+
gradio_leaderboard-0.0.13.dist-info/RECORD,,
|