ZTWHHH commited on
Commit
52ad5e3
·
verified ·
1 Parent(s): a483117

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/accordion/Index.svelte +31 -0
  2. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/README.md +448 -0
  3. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/index.html +39 -0
  4. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/package.json +49 -0
  5. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/src/constants.ts +40 -0
  6. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/src/utils/duplicate.ts +129 -0
  7. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/src/utils/handle_blob.ts +140 -0
  8. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/vite.config.js +45 -0
  9. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/colorpicker/Example.svelte +22 -0
  10. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/colorpicker/package.json +43 -0
  11. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/colorpicker/shared/utils.ts +37 -0
  12. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/dataframe/Example.svelte +106 -0
  13. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/dataframe/shared/EditableCell.svelte +125 -0
  14. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/datetime/package.json +41 -0
  15. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/group/package.json +29 -0
  16. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Back.svelte +17 -0
  17. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Backward.svelte +16 -0
  18. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Brush.svelte +10 -0
  19. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/BrushSize.svelte +10 -0
  20. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Calendar.svelte +51 -0
  21. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Camera.svelte +17 -0
  22. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Chart.svelte +10 -0
  23. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Chat.svelte +17 -0
  24. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Clear.svelte +24 -0
  25. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Color.svelte +11 -0
  26. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Community.svelte +6 -0
  27. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/DropdownArrow.svelte +17 -0
  28. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Edit.svelte +14 -0
  29. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Erase.svelte +17 -0
  30. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Error.svelte +18 -0
  31. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Eyedropper.svelte +10 -0
  32. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Forward.svelte +16 -0
  33. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Image.svelte +16 -0
  34. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/JSON.svelte +16 -0
  35. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Layers.svelte +19 -0
  36. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/LineChart.svelte +16 -0
  37. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Maximise.svelte +15 -0
  38. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Microphone.svelte +20 -0
  39. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Minimize.svelte +13 -0
  40. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Pause.svelte +14 -0
  41. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Plot.svelte +21 -0
  42. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Retry.svelte +36 -0
  43. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Rotate.svelte +13 -0
  44. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/ScrollDownArrow.svelte +15 -0
  45. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Send.svelte +17 -0
  46. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Spinner.svelte +40 -0
  47. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Square.svelte +19 -0
  48. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/TextHighlight.svelte +20 -0
  49. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Trash.svelte +25 -0
  50. evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Trim.svelte +23 -0
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/accordion/Index.svelte ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ import Accordion from "./shared/Accordion.svelte";
3
+ import { Block } from "@gradio/atoms";
4
+ import { StatusTracker } from "@gradio/statustracker";
5
+ import type { LoadingStatus } from "@gradio/statustracker";
6
+
7
+ import Column from "@gradio/column";
8
+ import type { Gradio } from "@gradio/utils";
9
+
10
+ export let label: string;
11
+ export let elem_id: string;
12
+ export let elem_classes: string[];
13
+ export let visible = true;
14
+ export let open = true;
15
+ export let loading_status: LoadingStatus;
16
+ export let gradio: Gradio;
17
+ </script>
18
+
19
+ <Block {elem_id} {elem_classes} {visible}>
20
+ <StatusTracker
21
+ autoscroll={gradio.autoscroll}
22
+ i18n={gradio.i18n}
23
+ {...loading_status}
24
+ />
25
+
26
+ <Accordion {label} bind:open>
27
+ <Column>
28
+ <slot />
29
+ </Column>
30
+ </Accordion>
31
+ </Block>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/README.md ADDED
@@ -0,0 +1,448 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## JavaScript Client Library
2
+
3
+ Interact with Gradio APIs using our JavaScript (and TypeScript) client.
4
+
5
+
6
+ ## Installation
7
+
8
+ The Gradio JavaScript Client is available on npm as `@gradio/client`. You can install it as below:
9
+
10
+ ```shell
11
+ npm i @gradio/client
12
+ ```
13
+
14
+ Or, you can include it directly in your HTML via the jsDelivr CDN:
15
+
16
+ ```shell
17
+ <script src="https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js"></script>
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ The JavaScript Gradio Client exposes the Client class, `Client`, along with various other utility functions. `Client` is used to initialise and establish a connection to, or duplicate, a Gradio app.
23
+
24
+ ### `Client`
25
+
26
+ The Client function connects to the API of a hosted Gradio space and returns an object that allows you to make calls to that API.
27
+
28
+ The simplest example looks like this:
29
+
30
+ ```ts
31
+ import { Client } from "@gradio/client";
32
+
33
+ const app = await Client.connect("user/space-name");
34
+ const result = await app.predict("/predict");
35
+ ```
36
+
37
+ This function accepts two arguments: `source` and `options`:
38
+
39
+ #### `source`
40
+
41
+ This is the url or name of the gradio app whose API you wish to connect to. This parameter is required and should always be a string. For example:
42
+
43
+ ```ts
44
+ Client.connect("user/space-name");
45
+ ```
46
+
47
+ #### `options`
48
+
49
+ The options object can optionally be passed a second parameter. This object has two properties, `hf_token` and `status_callback`.
50
+
51
+ ##### `hf_token`
52
+
53
+ This should be a Hugging Face personal access token and is required if you wish to make calls to a private gradio api. This option is optional and should be a string starting with `"hf_"`.
54
+
55
+ Example:
56
+
57
+ ```ts
58
+ import { Client } from "@gradio/client";
59
+
60
+ const app = await Client.connect("user/space-name", { hf_token: "hf_..." });
61
+ ```
62
+
63
+ ##### `status_callback`
64
+
65
+ This should be a function which will notify you of the status of a space if it is not running. If the gradio API you are connecting to is not awake and running or is not hosted on Hugging Face space then this function will do nothing.
66
+
67
+ **Additional context**
68
+
69
+ Applications hosted on Hugging Face spaces can be in a number of different states. As spaces are a GitOps tool and will rebuild when new changes are pushed to the repository, they have various building, running and error states. If a space is not 'running' then the function passed as the `status_callback` will notify you of the current state of the space and the status of the space as it changes. Spaces that are building or sleeping can take longer than usual to respond, so you can use this information to give users feedback about the progress of their action.
70
+
71
+ ```ts
72
+ import { Client, type SpaceStatus } from "@gradio/client";
73
+
74
+ const app = await Client.connect("user/space-name", {
75
+ // The space_status parameter does not need to be manually annotated, this is just for illustration.
76
+ space_status: (space_status: SpaceStatus) => console.log(space_status)
77
+ });
78
+ ```
79
+
80
+ ```ts
81
+ interface SpaceStatusNormal {
82
+ status: "sleeping" | "running" | "building" | "error" | "stopped";
83
+ detail:
84
+ | "SLEEPING"
85
+ | "RUNNING"
86
+ | "RUNNING_BUILDING"
87
+ | "BUILDING"
88
+ | "NOT_FOUND";
89
+ load_status: "pending" | "error" | "complete" | "generating";
90
+ message: string;
91
+ }
92
+
93
+ interface SpaceStatusError {
94
+ status: "space_error";
95
+ detail: "NO_APP_FILE" | "CONFIG_ERROR" | "BUILD_ERROR" | "RUNTIME_ERROR";
96
+ load_status: "error";
97
+ message: string;
98
+ discussions_enabled: boolean;
99
+
100
+ type SpaceStatus = SpaceStatusNormal | SpaceStatusError;
101
+ ```
102
+
103
+ The gradio client returns an object with a number of methods and properties:
104
+
105
+ #### `predict`
106
+
107
+ The `predict` method allows you to call an api endpoint and get a prediction result:
108
+
109
+ ```ts
110
+ import { Client } from "@gradio/client";
111
+
112
+ const app = await Client.connect("user/space-name");
113
+ const result = await app.predict("/predict");
114
+ ```
115
+
116
+ `predict` accepts two parameters, `endpoint` and `payload`. It returns a promise that resolves to the prediction result.
117
+
118
+ ##### `endpoint`
119
+
120
+ This is the endpoint for an api request and is required. The default endpoint for a `gradio.Interface` is `"/predict"`. Explicitly named endpoints have a custom name. The endpoint names can be found on the "View API" page of a space.
121
+
122
+ ```ts
123
+ import { Client } from "@gradio/client";
124
+
125
+ const app = await Client.connect("user/space-name");
126
+ const result = await app.predict("/predict");
127
+ ```
128
+
129
+ ##### `payload`
130
+
131
+ The `payload` argument is generally required but this depends on the API itself. If the API endpoint depends on values being passed in then the argument is required for the API request to succeed. The data that should be passed in is detailed on the "View API" page of a space, or accessible via the `view_api()` method of the client.
132
+
133
+ ```ts
134
+ import { Client } from "@gradio/client";
135
+
136
+ const app = await Client.connect("user/space-name");
137
+ const result = await app.predict("/predict", {
138
+ input: 1,
139
+ word_1: "Hello",
140
+ word_2: "friends"
141
+ });
142
+ ```
143
+
144
+ #### `submit`
145
+
146
+ The `submit` method provides a more flexible way to call an API endpoint, providing you with status updates about the current progress of the prediction as well as supporting more complex endpoint types.
147
+
148
+ ```ts
149
+ import { Client } from "@gradio/client";
150
+
151
+ const app = await Client.connect("user/space-name");
152
+ const submission = app.submit("/predict", { name: "Chewbacca" });
153
+ ```
154
+
155
+ The `submit` method accepts the same [`endpoint`](#endpoint) and [`payload`](#payload) arguments as `predict`.
156
+
157
+ The `submit` method does not return a promise and should not be awaited, instead it returns an async iterator with a `cancel` method.
158
+
159
+ ##### Accessing values
160
+
161
+ Iterating the submission allows you to access the events related to the submitted API request. There are two types of events that can be listened for: `"data"` updates and `"status"` updates. By default only the `"data"` event is reported, but you can listen for the `"status"` event by manually passing the events you care about when instantiating the client:
162
+
163
+ ```ts
164
+ import { Client } from "@gradio/client";
165
+
166
+ const app = await Client.connect("user/space-name", {
167
+ events: ["data", "status"]
168
+ });
169
+ ```
170
+
171
+ `"data"` updates are issued when the API computes a value, the callback provided as the second argument will be called when such a value is sent to the client. The shape of the data depends on the way the API itself is constructed. This event may fire more than once if that endpoint supports emmitting new values over time.
172
+
173
+ `"status` updates are issued when the status of a request changes. This information allows you to offer feedback to users when the queue position of the request changes, or when the request changes from queued to processing.
174
+
175
+ The status payload look like this:
176
+
177
+ ```ts
178
+ interface Status {
179
+ queue: boolean;
180
+ code?: string;
181
+ success?: boolean;
182
+ stage: "pending" | "error" | "complete" | "generating";
183
+ size?: number;
184
+ position?: number;
185
+ eta?: number;
186
+ message?: string;
187
+ progress_data?: Array<{
188
+ progress: number | null;
189
+ index: number | null;
190
+ length: number | null;
191
+ unit: string | null;
192
+ desc: string | null;
193
+ }>;
194
+ time?: Date;
195
+ }
196
+ ```
197
+
198
+ Usage looks like this:
199
+
200
+ ```ts
201
+ import { Client } from "@gradio/client";
202
+
203
+ const app = await Client.connect("user/space-name");
204
+ const submission = app
205
+ .submit("/predict", { name: "Chewbacca" })
206
+
207
+ for await (const msg of submission) {
208
+ if (msg.type === "data") {
209
+ console.log(msg.data);
210
+ }
211
+
212
+ if (msg.type === "status") {
213
+ console.log(msg);
214
+ }
215
+ }
216
+ ```
217
+
218
+
219
+ ##### `cancel`
220
+
221
+ Certain types of gradio function can run repeatedly and in some cases indefinitely. the `cancel` method will stop such an endpoints and prevent the API from issuing additional updates.
222
+
223
+ ```ts
224
+ import { Client } from "@gradio/client";
225
+
226
+ const app = await Client.connect("user/space-name");
227
+ const submission = app
228
+ .submit("/predict", { name: "Chewbacca" })
229
+
230
+
231
+ // later
232
+
233
+ submission.cancel();
234
+ ```
235
+
236
+ #### `view_api`
237
+
238
+ The `view_api` method provides details about the API you are connected to. It returns a JavaScript object of all named endpoints, unnamed endpoints and what values they accept and return. This method does not accept arguments.
239
+
240
+ ```ts
241
+ import { Client } from "@gradio/client";
242
+
243
+ const app = await Client.connect("user/space-name");
244
+ const api_info = await app.view_api();
245
+
246
+ console.log(api_info);
247
+ ```
248
+
249
+ #### `config`
250
+
251
+ The `config` property contains the configuration for the gradio application you are connected to. This object may contain useful meta information about the application.
252
+
253
+ ```ts
254
+ import { Client } from "@gradio/client";
255
+
256
+ const app = await Client.connect("user/space-name");
257
+ console.log(app.config);
258
+ ```
259
+
260
+ ### `duplicate`
261
+
262
+ The duplicate function will attempt to duplicate the space that is referenced and return an instance of `client` connected to that space. If the space has already been duplicated then it will not create a new duplicate and will instead connect to the existing duplicated space. The huggingface token that is passed in will dictate the user under which the space is created.
263
+
264
+ `duplicate` accepts the same arguments as `client` with the addition of a `private` options property dictating whether the duplicated space should be private or public. A huggingface token is required for duplication to work.
265
+
266
+ ```ts
267
+ import { Client } from "@gradio/client";
268
+
269
+ const app = await Client.duplicate("user/space-name", {
270
+ hf_token: "hf_..."
271
+ });
272
+ ```
273
+
274
+ This function accepts two arguments: `source` and `options`:
275
+
276
+ #### `source`
277
+
278
+ The space to duplicate and connect to. [See `client`'s `source` parameter](#source).
279
+
280
+ #### `options`
281
+
282
+ Accepts all options that `client` accepts, except `hf_token` is required. [See `client`'s `options` parameter](#source).
283
+
284
+ `duplicate` also accepts one additional `options` property.
285
+
286
+ ##### `private`
287
+
288
+ This is an optional property specific to `duplicate`'s options object and will determine whether the space should be public or private. Spaces duplicated via the `duplicate` method are public by default.
289
+
290
+ ```ts
291
+ import { Client } from "@gradio/client";
292
+
293
+ const app = await Client.duplicate("user/space-name", {
294
+ hf_token: "hf_...",
295
+ private: true
296
+ });
297
+ ```
298
+
299
+ ##### `timeout`
300
+
301
+ This is an optional property specific to `duplicate`'s options object and will set the timeout in minutes before the duplicated space will go to sleep.
302
+
303
+ ```ts
304
+ import { Client } from "@gradio/client";
305
+
306
+ const app = await Client.duplicate("user/space-name", {
307
+ hf_token: "hf_...",
308
+ private: true,
309
+ timeout: 5
310
+ });
311
+ ```
312
+
313
+ ##### `hardware`
314
+
315
+ This is an optional property specific to `duplicate`'s options object and will set the hardware for the duplicated space. By default the hardware used will match that of the original space. If this cannot be obtained it will default to `"cpu-basic"`. For hardware upgrades (beyond the basic CPU tier), you may be required to provide [billing information on Hugging Face](https://huggingface.co/settings/billing).
316
+
317
+ Possible hardware options are:
318
+
319
+ - `"cpu-basic"`
320
+ - `"cpu-upgrade"`
321
+ - `"cpu-xl"`
322
+ - `"t4-small"`
323
+ - `"t4-medium"`
324
+ - `"a10g-small"`
325
+ - `"a10g-large"`
326
+ - `"a10g-largex2"`
327
+ - `"a10g-largex4"`
328
+ - `"a100-large"`
329
+ - `"zero-a10g"`
330
+ - `"h100"`
331
+ - `"h100x8"`
332
+
333
+ ```ts
334
+ import { Client } from "@gradio/client";
335
+
336
+ const app = await Client.duplicate("user/space-name", {
337
+ hf_token: "hf_...",
338
+ private: true,
339
+ hardware: "a10g-small"
340
+ });
341
+ ```
342
+
343
+ ### `handle_file(file_or_url: File | string | Blob | Buffer)`
344
+
345
+ This utility function is used to simplify the process of handling file inputs for the client.
346
+
347
+ Gradio APIs expect a special file datastructure that references a location on the server. These files can be manually uploaded but figuring what to do with different file types can be difficult depending on your environment.
348
+
349
+ This function will handle files regardless of whether or not they are local files (node only), URLs, Blobs, or Buffers. It will take in a reference and handle it accordingly,uploading the file where appropriate and generating the correct data structure for the client.
350
+
351
+ The return value of this function can be used anywhere in the input data where a file is expected:
352
+
353
+ ```ts
354
+ import { handle_file } from "@gradio/client";
355
+
356
+ const app = await Client.connect("user/space-name");
357
+ const result = await app.predict("/predict", {
358
+ single: handle_file(file),
359
+ flat: [handle_file(url), handle_file(buffer)],
360
+ nested: {
361
+ image: handle_file(url),
362
+ layers: [handle_file(buffer)]
363
+ },
364
+ deeply_nested: {
365
+ image: handle_file(url),
366
+ layers: [{
367
+ layer1: handle_file(buffer),
368
+ layer2: handle_file(buffer)
369
+ }]
370
+ }
371
+ });
372
+ ```
373
+
374
+ #### filepaths
375
+
376
+ `handle_file` can be passed a local filepath which it will upload to the client server and return a reference that the client can understand.
377
+
378
+ This only works in a node environment.
379
+
380
+ Filepaths are resolved relative to the current working directory, not the location of the file that calls `handle_file`.
381
+
382
+ ```ts
383
+ import { handle_file } from "@gradio/client";
384
+
385
+ // not uploaded yet
386
+ const file_ref = handle_file("path/to/file");
387
+
388
+ const app = await Client.connect("user/space-name");
389
+
390
+ // upload happens here
391
+ const result = await app.predict("/predict", {
392
+ file: file_ref,
393
+ });
394
+ ```
395
+
396
+ #### URLs
397
+
398
+ `handle_file` can be passed a URL which it will convert into a reference that the client can understand.
399
+
400
+ ```ts
401
+ import { handle_file } from "@gradio/client";
402
+
403
+ const url_ref = handle_file("https://example.com/file.png");
404
+
405
+ const app = await Client.connect("user/space-name");
406
+ const result = await app.predict("/predict", {
407
+ url: url_ref,
408
+ });
409
+ ```
410
+
411
+ #### Blobs
412
+
413
+ `handle_file` can be passed a Blob which it will upload to the client server and return a reference that the client can understand.
414
+
415
+ The upload is not initiated until predict or submit are called.
416
+
417
+ ```ts
418
+ import { handle_file } from "@gradio/client";
419
+
420
+ // not uploaded yet
421
+ const blob_ref = handle_file(new Blob(["Hello, world!"]));
422
+
423
+ const app = await Client.connect("user/space-name");
424
+
425
+ // upload happens here
426
+ const result = await app.predict("/predict", {
427
+ blob: blob_ref,
428
+ });
429
+ ```
430
+
431
+ #### Buffers
432
+
433
+ `handle_file` can be passed a Buffer which it will upload to the client server and return a reference that the client can understand.
434
+
435
+ ```ts
436
+ import { handle_file } from "@gradio/client";
437
+ import { readFileSync } from "fs";
438
+
439
+ // not uploaded yet
440
+ const buffer_ref = handle_file(readFileSync("file.png"));
441
+
442
+ const app = await Client.connect("user/space-name");
443
+
444
+ // upload happens here
445
+ const result = await app.predict("/predict", {
446
+ buffer: buffer_ref,
447
+ });
448
+ ```
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/index.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Client</title>
8
+ <script type="module">
9
+ import { Client } from "./dist/index.js";
10
+ console.log(Client);
11
+
12
+ const client = await Client.connect("pngwn/chatinterface_streaming_echo");
13
+ async function run(message, n) {
14
+ // console.log(client);
15
+ const req = client.submit("/chat", {
16
+ message
17
+ });
18
+ console.log("start");
19
+ for await (const c of req) {
20
+ if (c.type === "data") {
21
+ console.log(`${n}: ${c.data[0]}`);
22
+ }
23
+ }
24
+
25
+ console.log("end");
26
+
27
+ return "hi";
28
+ }
29
+
30
+ run("My name is frank", 1);
31
+ run("Hello there", 2);
32
+
33
+ console.log("boo");
34
+ </script>
35
+ </head>
36
+ <body>
37
+ <div id="app"></div>
38
+ </body>
39
+ </html>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/package.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/client",
3
+ "version": "1.6.0",
4
+ "description": "Gradio API client",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "author": "",
8
+ "license": "ISC",
9
+ "exports": {
10
+ ".": {
11
+ "gradio": "./src/index.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "dependencies": {
17
+ "@types/eventsource": "^1.1.15",
18
+ "bufferutil": "^4.0.7",
19
+ "eventsource": "^2.0.2",
20
+ "fetch-event-stream": "^0.1.5",
21
+ "msw": "^2.2.1",
22
+ "semiver": "^1.1.0",
23
+ "textlinestream": "^1.1.1",
24
+ "typescript": "^5.0.0",
25
+ "ws": "^8.13.0"
26
+ },
27
+ "devDependencies": {
28
+ "@types/ws": "^8.5.10",
29
+ "esbuild": "^0.21.0"
30
+ },
31
+ "scripts": {
32
+ "bundle": "vite build --ssr",
33
+ "generate_types": "tsc",
34
+ "build": "pnpm bundle && pnpm generate_types",
35
+ "test": "pnpm test:client && pnpm test:client:node",
36
+ "test:client": "vitest run -c vite.config.js",
37
+ "test:client:node": "TEST_MODE=node vitest run -c vite.config.js",
38
+ "preview:browser": "vite dev --mode=preview"
39
+ },
40
+ "engines": {
41
+ "node": ">=18.0.0"
42
+ },
43
+ "main_changeset": true,
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "git+https://github.com/gradio-app/gradio.git",
47
+ "directory": "client/js"
48
+ }
49
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/src/constants.ts ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // endpoints
2
+ export const HOST_URL = `host`;
3
+ export const API_URL = `predict/`;
4
+ export const SSE_URL_V0 = `queue/join`;
5
+ export const SSE_DATA_URL_V0 = `queue/data`;
6
+ export const SSE_URL = `queue/data`;
7
+ export const SSE_DATA_URL = `queue/join`;
8
+ export const UPLOAD_URL = `upload`;
9
+ export const LOGIN_URL = `login`;
10
+ export const CONFIG_URL = `config`;
11
+ export const API_INFO_URL = `info`;
12
+ export const RUNTIME_URL = `runtime`;
13
+ export const SLEEPTIME_URL = `sleeptime`;
14
+ export const HEARTBEAT_URL = `heartbeat`;
15
+ export const COMPONENT_SERVER_URL = `component_server`;
16
+ export const RESET_URL = `reset`;
17
+ export const CANCEL_URL = `cancel`;
18
+
19
+ export const RAW_API_INFO_URL = `info?serialize=False`;
20
+ export const SPACE_FETCHER_URL =
21
+ "https://gradio-space-api-fetcher-v2.hf.space/api";
22
+ export const SPACE_URL = "https://hf.space/{}";
23
+
24
+ // messages
25
+ export const QUEUE_FULL_MSG =
26
+ "This application is currently busy. Please try again. ";
27
+ export const BROKEN_CONNECTION_MSG = "Connection errored out. ";
28
+ export const CONFIG_ERROR_MSG = "Could not resolve app config. ";
29
+ export const SPACE_STATUS_ERROR_MSG = "Could not get space status. ";
30
+ export const API_INFO_ERROR_MSG = "Could not get API info. ";
31
+ export const SPACE_METADATA_ERROR_MSG = "Space metadata could not be loaded. ";
32
+ export const INVALID_URL_MSG = "Invalid URL. A full URL path is required.";
33
+ export const UNAUTHORIZED_MSG = "Not authorized to access this space. ";
34
+ export const INVALID_CREDENTIALS_MSG = "Invalid credentials. Could not login. ";
35
+ export const MISSING_CREDENTIALS_MSG =
36
+ "Login credentials are required to access this space.";
37
+ export const NODEJS_FS_ERROR_MSG =
38
+ "File system access is only available in Node.js environments";
39
+ export const ROOT_URL_ERROR_MSG = "Root URL not found in client config";
40
+ export const FILE_PROCESSING_ERROR_MSG = "Error uploading file";
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/src/utils/duplicate.ts ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import {
2
+ get_space_hardware,
3
+ hardware_types,
4
+ set_space_timeout
5
+ } from "../helpers/spaces";
6
+ import type { DuplicateOptions } from "../types";
7
+ import { Client } from "../client";
8
+ import { SPACE_METADATA_ERROR_MSG } from "../constants";
9
+ import {
10
+ get_cookie_header,
11
+ parse_and_set_cookies
12
+ } from "../helpers/init_helpers";
13
+ import { process_endpoint } from "../helpers/api_info";
14
+
15
+ export async function duplicate(
16
+ app_reference: string,
17
+ options: DuplicateOptions
18
+ ): Promise<Client> {
19
+ const { hf_token, private: _private, hardware, timeout, auth } = options;
20
+
21
+ if (hardware && !hardware_types.includes(hardware)) {
22
+ throw new Error(
23
+ `Invalid hardware type provided. Valid types are: ${hardware_types
24
+ .map((v) => `"${v}"`)
25
+ .join(",")}.`
26
+ );
27
+ }
28
+
29
+ const { http_protocol, host } = await process_endpoint(
30
+ app_reference,
31
+ hf_token
32
+ );
33
+
34
+ let cookies: string[] | null = null;
35
+
36
+ if (auth) {
37
+ const cookie_header = await get_cookie_header(
38
+ http_protocol,
39
+ host,
40
+ auth,
41
+ fetch
42
+ );
43
+
44
+ if (cookie_header) cookies = parse_and_set_cookies(cookie_header);
45
+ }
46
+
47
+ const headers = {
48
+ Authorization: `Bearer ${hf_token}`,
49
+ "Content-Type": "application/json",
50
+ ...(cookies ? { Cookie: cookies.join("; ") } : {})
51
+ };
52
+
53
+ const user = (
54
+ await (
55
+ await fetch(`https://huggingface.co/api/whoami-v2`, {
56
+ headers
57
+ })
58
+ ).json()
59
+ ).name;
60
+
61
+ const space_name = app_reference.split("/")[1];
62
+ const body: {
63
+ repository: string;
64
+ private?: boolean;
65
+ hardware?: string;
66
+ } = {
67
+ repository: `${user}/${space_name}`
68
+ };
69
+
70
+ if (_private) {
71
+ body.private = true;
72
+ }
73
+
74
+ let original_hardware;
75
+
76
+ try {
77
+ if (!hardware) {
78
+ original_hardware = await get_space_hardware(app_reference, hf_token);
79
+ }
80
+ } catch (e) {
81
+ throw Error(SPACE_METADATA_ERROR_MSG + (e as Error).message);
82
+ }
83
+
84
+ const requested_hardware = hardware || original_hardware || "cpu-basic";
85
+
86
+ body.hardware = requested_hardware;
87
+
88
+ try {
89
+ const response = await fetch(
90
+ `https://huggingface.co/api/spaces/${app_reference}/duplicate`,
91
+ {
92
+ method: "POST",
93
+ headers,
94
+ body: JSON.stringify(body)
95
+ }
96
+ );
97
+
98
+ if (response.status === 409) {
99
+ try {
100
+ const client = await Client.connect(`${user}/${space_name}`, options);
101
+ return client;
102
+ } catch (error) {
103
+ console.error("Failed to connect Client instance:", error);
104
+ throw error;
105
+ }
106
+ } else if (response.status !== 200) {
107
+ throw new Error(response.statusText);
108
+ }
109
+
110
+ const duplicated_space = await response.json();
111
+
112
+ await set_space_timeout(`${user}/${space_name}`, timeout || 300, hf_token);
113
+
114
+ return await Client.connect(
115
+ get_space_reference(duplicated_space.url),
116
+ options
117
+ );
118
+ } catch (e: any) {
119
+ throw new Error(e);
120
+ }
121
+ }
122
+
123
+ function get_space_reference(url: string): any {
124
+ const regex = /https:\/\/huggingface.co\/spaces\/([^/]+\/[^/]+)/;
125
+ const match = url.match(regex);
126
+ if (match) {
127
+ return match[1];
128
+ }
129
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/src/utils/handle_blob.ts ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { update_object, walk_and_store_blobs } from "../helpers/data";
2
+ import {
3
+ Command,
4
+ type ApiData,
5
+ type EndpointInfo,
6
+ type JsApiData
7
+ } from "../types";
8
+ import { FileData } from "../upload";
9
+ import type { Client } from "..";
10
+ import {
11
+ FILE_PROCESSING_ERROR_MSG,
12
+ NODEJS_FS_ERROR_MSG,
13
+ ROOT_URL_ERROR_MSG
14
+ } from "../constants";
15
+
16
+ export async function handle_blob(
17
+ this: Client,
18
+ endpoint: string,
19
+ data: unknown[],
20
+ api_info: EndpointInfo<JsApiData | ApiData>
21
+ ): Promise<unknown[]> {
22
+ const self = this;
23
+
24
+ await process_local_file_commands(self, data);
25
+
26
+ const blobRefs = await walk_and_store_blobs(
27
+ data,
28
+ undefined,
29
+ [],
30
+ true,
31
+ api_info
32
+ );
33
+
34
+ const results = await Promise.all(
35
+ blobRefs.map(async ({ path, blob, type }) => {
36
+ if (!blob) return { path, type };
37
+
38
+ const response = await self.upload_files(endpoint, [blob]);
39
+ const file_url = response.files && response.files[0];
40
+ return {
41
+ path,
42
+ file_url,
43
+ type,
44
+ name:
45
+ typeof File !== "undefined" && blob instanceof File
46
+ ? blob?.name
47
+ : undefined
48
+ };
49
+ })
50
+ );
51
+
52
+ results.forEach(({ path, file_url, type, name }) => {
53
+ if (type === "Gallery") {
54
+ update_object(data, file_url, path);
55
+ } else if (file_url) {
56
+ const file = new FileData({ path: file_url, orig_name: name });
57
+ update_object(data, file, path);
58
+ }
59
+ });
60
+
61
+ return data;
62
+ }
63
+
64
+ export async function process_local_file_commands(
65
+ client: Client,
66
+ data: unknown[]
67
+ ): Promise<void> {
68
+ const root = client.config?.root || client.config?.root_url;
69
+
70
+ if (!root) {
71
+ throw new Error(ROOT_URL_ERROR_MSG);
72
+ }
73
+
74
+ await recursively_process_commands(client, data);
75
+ }
76
+
77
+ async function recursively_process_commands(
78
+ client: Client,
79
+ data: any,
80
+ path: string[] = []
81
+ ): Promise<void> {
82
+ for (const key in data) {
83
+ if (data[key] instanceof Command) {
84
+ await process_single_command(client, data, key);
85
+ } else if (typeof data[key] === "object" && data[key] !== null) {
86
+ await recursively_process_commands(client, data[key], [...path, key]);
87
+ }
88
+ }
89
+ }
90
+
91
+ async function process_single_command(
92
+ client: Client,
93
+ data: any,
94
+ key: string
95
+ ): Promise<void> {
96
+ let cmd_item = data[key] as Command;
97
+ const root = client.config?.root || client.config?.root_url;
98
+
99
+ if (!root) {
100
+ throw new Error(ROOT_URL_ERROR_MSG);
101
+ }
102
+
103
+ try {
104
+ let fileBuffer: Buffer;
105
+ let fullPath: string;
106
+
107
+ // check if running in a Node.js environment
108
+ if (
109
+ typeof process !== "undefined" &&
110
+ process.versions &&
111
+ process.versions.node
112
+ ) {
113
+ const fs = await import("fs/promises");
114
+ const path = await import("path");
115
+
116
+ fullPath = path.resolve(process.cwd(), cmd_item.meta.path);
117
+ fileBuffer = await fs.readFile(fullPath); // Read file from disk
118
+ } else {
119
+ throw new Error(NODEJS_FS_ERROR_MSG);
120
+ }
121
+
122
+ const file = new Blob([fileBuffer], { type: "application/octet-stream" });
123
+
124
+ const response = await client.upload_files(root, [file]);
125
+
126
+ const file_url = response.files && response.files[0];
127
+
128
+ if (file_url) {
129
+ const fileData = new FileData({
130
+ path: file_url,
131
+ orig_name: cmd_item.meta.name || ""
132
+ });
133
+
134
+ // replace the command object with the fileData object
135
+ data[key] = fileData;
136
+ }
137
+ } catch (error) {
138
+ console.error(FILE_PROCESSING_ERROR_MSG, error);
139
+ }
140
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/client/vite.config.js ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { defineConfig } from "vite";
2
+ import { svelte } from "@sveltejs/vite-plugin-svelte";
3
+
4
+ const TEST_MODE = process.env.TEST_MODE || "happy-dom";
5
+
6
+ export default defineConfig(({ mode }) => {
7
+ if (mode === "preview") {
8
+ return {
9
+ entry: "index.html"
10
+ };
11
+ }
12
+ return {
13
+ build: {
14
+ lib: {
15
+ entry: "src/index.ts",
16
+ formats: ["es"],
17
+ fileName: (format) => `index.${format}.js`
18
+ },
19
+ rollupOptions: {
20
+ input: "src/index.ts",
21
+ output: {
22
+ dir: "dist"
23
+ }
24
+ }
25
+ },
26
+ plugins: [svelte()],
27
+
28
+ mode: process.env.MODE || "development",
29
+ test: {
30
+ include: ["./src/test/*.test.*"],
31
+ environment: TEST_MODE
32
+ },
33
+ ssr: {
34
+ target: "node",
35
+ format: "esm",
36
+ noExternal: [
37
+ "ws",
38
+ "semiver",
39
+ "bufferutil",
40
+ "@gradio/upload",
41
+ "fetch-event-stream"
42
+ ]
43
+ }
44
+ };
45
+ });
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/colorpicker/Example.svelte ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ export let value: string | null;
3
+ export let type: "gallery" | "table";
4
+ export let selected = false;
5
+ </script>
6
+
7
+ <div
8
+ style="background-color: {value ? value : 'black'}"
9
+ class:table={type === "table"}
10
+ class:gallery={type === "gallery"}
11
+ class:selected
12
+ />
13
+
14
+ <style>
15
+ div {
16
+ width: var(--size-10);
17
+ height: var(--size-10);
18
+ }
19
+ .table {
20
+ margin: 0 auto;
21
+ }
22
+ </style>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/colorpicker/package.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/colorpicker",
3
+ "version": "0.4.1",
4
+ "description": "Gradio UI packages",
5
+ "type": "module",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "private": false,
9
+ "main_changeset": true,
10
+ "main": "./Index.svelte",
11
+ "exports": {
12
+ ".": {
13
+ "gradio": "./Index.svelte",
14
+ "svelte": "./dist/Index.svelte",
15
+ "types": "./dist/Index.svelte.d.ts"
16
+ },
17
+ "./example": {
18
+ "gradio": "./Example.svelte",
19
+ "svelte": "./dist/Example.svelte",
20
+ "types": "./dist/Example.svelte.d.ts"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
24
+ "dependencies": {
25
+ "@gradio/atoms": "workspace:^",
26
+ "@gradio/statustracker": "workspace:^",
27
+ "@gradio/utils": "workspace:^",
28
+ "@gradio/icons": "workspace:^",
29
+ "tinycolor2": "^1.6.0",
30
+ "@types/tinycolor2": "^1.4.6"
31
+ },
32
+ "devDependencies": {
33
+ "@gradio/preview": "workspace:^"
34
+ },
35
+ "peerDependencies": {
36
+ "svelte": "^4.0.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/gradio-app/gradio.git",
41
+ "directory": "js/colorpicker"
42
+ }
43
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/colorpicker/shared/utils.ts ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import tinycolor from "tinycolor2";
2
+
3
+ export function hsva_to_rgba(hsva: {
4
+ h: number;
5
+ s: number;
6
+ v: number;
7
+ a: number;
8
+ }): string {
9
+ const saturation = hsva.s;
10
+ const value = hsva.v;
11
+ let chroma = saturation * value;
12
+ const hue_by_60 = hsva.h / 60;
13
+ let x = chroma * (1 - Math.abs((hue_by_60 % 2) - 1));
14
+ const m = value - chroma;
15
+
16
+ chroma = chroma + m;
17
+ x = x + m;
18
+
19
+ const index = Math.floor(hue_by_60) % 6;
20
+ const red = [chroma, x, m, m, x, chroma][index];
21
+ const green = [x, chroma, chroma, x, m, m][index];
22
+ const blue = [m, m, x, chroma, chroma, x][index];
23
+
24
+ return `rgba(${red * 255}, ${green * 255}, ${blue * 255}, ${hsva.a})`;
25
+ }
26
+
27
+ export function format_color(
28
+ color: string,
29
+ mode: "hex" | "rgb" | "hsl"
30
+ ): string {
31
+ if (mode === "hex") {
32
+ return tinycolor(color).toHexString();
33
+ } else if (mode === "rgb") {
34
+ return tinycolor(color).toRgbString();
35
+ }
36
+ return tinycolor(color).toHslString();
37
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/dataframe/Example.svelte ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ export let value: (string | number)[][] | string;
3
+ export let type: "gallery" | "table";
4
+ export let selected = false;
5
+ export let index: number;
6
+
7
+ let hovered = false;
8
+ let loaded = Array.isArray(value);
9
+ </script>
10
+
11
+ {#if loaded}
12
+ <!-- TODO: fix-->
13
+ <!-- svelte-ignore a11y-no-static-element-interactions-->
14
+ <div
15
+ class:table={type === "table"}
16
+ class:gallery={type === "gallery"}
17
+ class:selected
18
+ on:mouseenter={() => (hovered = true)}
19
+ on:mouseleave={() => (hovered = false)}
20
+ >
21
+ {#if typeof value === "string"}
22
+ {value}
23
+ {:else}
24
+ <table class="">
25
+ {#each value.slice(0, 3) as row, i}
26
+ <tr>
27
+ {#each row.slice(0, 3) as cell, j}
28
+ <td>{cell}</td>
29
+ {/each}
30
+ {#if row.length > 3}
31
+ <td>…</td>
32
+ {/if}
33
+ </tr>
34
+ {/each}
35
+ {#if value.length > 3}
36
+ <div
37
+ class="overlay"
38
+ class:odd={index % 2 != 0}
39
+ class:even={index % 2 == 0}
40
+ class:button={type === "gallery"}
41
+ />
42
+ {/if}
43
+ </table>
44
+ {/if}
45
+ </div>
46
+ {/if}
47
+
48
+ <style>
49
+ table {
50
+ position: relative;
51
+ }
52
+
53
+ td {
54
+ border: 1px solid var(--table-border-color);
55
+ padding: var(--size-2);
56
+ font-size: var(--text-sm);
57
+ font-family: var(--font-mono);
58
+ }
59
+
60
+ .selected td {
61
+ border-color: var(--border-color-accent);
62
+ }
63
+
64
+ .table {
65
+ display: inline-block;
66
+ margin: 0 auto;
67
+ }
68
+
69
+ .gallery td:first-child {
70
+ border-left: none;
71
+ }
72
+
73
+ .gallery tr:first-child td {
74
+ border-top: none;
75
+ }
76
+
77
+ .gallery td:last-child {
78
+ border-right: none;
79
+ }
80
+
81
+ .gallery tr:last-child td {
82
+ border-bottom: none;
83
+ }
84
+
85
+ .overlay {
86
+ --gradient-to: transparent;
87
+ position: absolute;
88
+ bottom: 0;
89
+ background: linear-gradient(to bottom, transparent, var(--gradient-to));
90
+ width: var(--size-full);
91
+ height: 50%;
92
+ }
93
+
94
+ /* i dont know what i've done here but it is what it is */
95
+ .odd {
96
+ --gradient-to: var(--table-even-background-fill);
97
+ }
98
+
99
+ .even {
100
+ --gradient-to: var(--table-odd-background-fill);
101
+ }
102
+
103
+ .button {
104
+ --gradient-to: var(--background-fill-primary);
105
+ }
106
+ </style>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/dataframe/shared/EditableCell.svelte ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ import { createEventDispatcher } from "svelte";
3
+ import { MarkdownCode } from "@gradio/markdown";
4
+
5
+ export let edit: boolean;
6
+ export let value: string | number = "";
7
+ export let display_value: string | null = null;
8
+ export let styling = "";
9
+ export let header = false;
10
+ export let datatype:
11
+ | "str"
12
+ | "markdown"
13
+ | "html"
14
+ | "number"
15
+ | "bool"
16
+ | "date" = "str";
17
+ export let latex_delimiters: {
18
+ left: string;
19
+ right: string;
20
+ display: boolean;
21
+ }[];
22
+ export let clear_on_focus = false;
23
+ export let select_on_focus = false;
24
+ export let line_breaks = true;
25
+ export let editable = true;
26
+ export let root: string;
27
+
28
+ const dispatch = createEventDispatcher();
29
+
30
+ export let el: HTMLInputElement | null;
31
+ $: _value = value;
32
+
33
+ function use_focus(node: HTMLInputElement): any {
34
+ if (clear_on_focus) {
35
+ _value = "";
36
+ }
37
+ if (select_on_focus) {
38
+ node.select();
39
+ }
40
+
41
+ node.focus();
42
+
43
+ return {};
44
+ }
45
+
46
+ function handle_blur({
47
+ currentTarget
48
+ }: Event & {
49
+ currentTarget: HTMLInputElement;
50
+ }): void {
51
+ value = currentTarget.value;
52
+ dispatch("blur");
53
+ }
54
+ </script>
55
+
56
+ {#if edit}
57
+ <input
58
+ role="textbox"
59
+ bind:this={el}
60
+ bind:value={_value}
61
+ class:header
62
+ tabindex="-1"
63
+ on:blur={handle_blur}
64
+ use:use_focus
65
+ on:keydown
66
+ />
67
+ {/if}
68
+
69
+ <span
70
+ on:dblclick
71
+ tabindex="-1"
72
+ role="button"
73
+ class:edit
74
+ on:focus|preventDefault
75
+ style={styling}
76
+ >
77
+ {#if datatype === "html"}
78
+ {@html value}
79
+ {:else if datatype === "markdown"}
80
+ <MarkdownCode
81
+ message={value.toLocaleString()}
82
+ {latex_delimiters}
83
+ {line_breaks}
84
+ chatbot={false}
85
+ {root}
86
+ />
87
+ {:else}
88
+ {editable ? value : display_value || value}
89
+ {/if}
90
+ </span>
91
+
92
+ <style>
93
+ input {
94
+ position: absolute;
95
+ top: var(--size-2);
96
+ right: var(--size-2);
97
+ bottom: var(--size-2);
98
+ left: var(--size-2);
99
+ flex: 1 1 0%;
100
+ transform: translateX(-0.1px);
101
+ outline: none;
102
+ border: none;
103
+ background: transparent;
104
+ }
105
+
106
+ span {
107
+ flex: 1 1 0%;
108
+ outline: none;
109
+ padding: var(--size-2);
110
+ -webkit-user-select: text;
111
+ -moz-user-select: text;
112
+ -ms-user-select: text;
113
+ user-select: text;
114
+ }
115
+
116
+ .header {
117
+ transform: translateX(0);
118
+ font: var(--weight-bold);
119
+ }
120
+
121
+ .edit {
122
+ opacity: 0;
123
+ pointer-events: none;
124
+ }
125
+ </style>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/datetime/package.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/datetime",
3
+ "version": "0.2.1",
4
+ "description": "Gradio UI packages",
5
+ "type": "module",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "private": false,
9
+ "main_changeset": true,
10
+ "main": "Index.svelte",
11
+ "exports": {
12
+ ".": {
13
+ "gradio": "./Index.svelte",
14
+ "svelte": "./dist/Index.svelte",
15
+ "types": "./dist/Index.svelte.d.ts"
16
+ },
17
+ "./example": {
18
+ "gradio": "./Example.svelte",
19
+ "svelte": "./dist/Example.svelte",
20
+ "types": "./dist/Example.svelte.d.ts"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
24
+ "dependencies": {
25
+ "@gradio/atoms": "workspace:^",
26
+ "@gradio/icons": "workspace:^",
27
+ "@gradio/statustracker": "workspace:^",
28
+ "@gradio/utils": "workspace:^"
29
+ },
30
+ "peerDependencies": {
31
+ "svelte": "^4.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@gradio/preview": "workspace:^"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/gradio-app/gradio.git",
39
+ "directory": "js/datetime"
40
+ }
41
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/group/package.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/group",
3
+ "version": "0.2.0",
4
+ "description": "Gradio UI packages",
5
+ "type": "module",
6
+ "author": "",
7
+ "license": "ISC",
8
+ "private": false,
9
+ "main_changeset": true,
10
+ "exports": {
11
+ ".": {
12
+ "gradio": "./Index.svelte",
13
+ "svelte": "./dist/Index.svelte",
14
+ "types": "./dist/Index.svelte.d.ts"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "devDependencies": {
19
+ "@gradio/preview": "workspace:^"
20
+ },
21
+ "peerDependencies": {
22
+ "svelte": "^4.0.0"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/gradio-app/gradio.git",
27
+ "directory": "js/group"
28
+ }
29
+ }
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Back.svelte ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="12px"
4
+ height="24px"
5
+ fill="currentColor"
6
+ stroke-width="1.5"
7
+ viewBox="0 0 12 24"
8
+ >
9
+ <path
10
+ d="M9 6L3 12L9 18"
11
+ stroke="currentColor"
12
+ stroke-width="2"
13
+ stroke-linecap="round"
14
+ stroke-linejoin="round"
15
+ fill="none"
16
+ />
17
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Backward.svelte ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="24px"
4
+ height="24px"
5
+ fill="currentColor"
6
+ stroke-width="1.5"
7
+ viewBox="0 0 24 24"
8
+ color="currentColor"
9
+ ><path
10
+ stroke="currentColor"
11
+ stroke-width="1.5"
12
+ stroke-linecap="round"
13
+ stroke-linejoin="round"
14
+ d="M21.044 5.704a.6.6 0 0 1 .956.483v11.626a.6.6 0 0 1-.956.483l-7.889-5.813a.6.6 0 0 1 0-.966l7.89-5.813ZM10.044 5.704a.6.6 0 0 1 .956.483v11.626a.6.6 0 0 1-.956.483l-7.888-5.813a.6.6 0 0 1 0-.966l7.888-5.813Z"
15
+ /></svg
16
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Brush.svelte ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="100%" height="100%" viewBox="0 0 32 32">
2
+ <path
3
+ d="M28.828 3.172a4.094 4.094 0 0 0-5.656 0L4.05 22.292A6.954 6.954 0 0 0 2 27.242V30h2.756a6.952 6.952 0 0 0 4.95-2.05L28.828 8.829a3.999 3.999 0 0 0 0-5.657zM10.91 18.26l2.829 2.829l-2.122 2.121l-2.828-2.828zm-2.619 8.276A4.966 4.966 0 0 1 4.756 28H4v-.759a4.967 4.967 0 0 1 1.464-3.535l1.91-1.91l2.829 2.828zM27.415 7.414l-12.261 12.26l-2.829-2.828l12.262-12.26a2.047 2.047 0 0 1 2.828 0a2 2 0 0 1 0 2.828z"
4
+ fill="currentColor"
5
+ />
6
+ <path
7
+ d="M6.5 15a3.5 3.5 0 0 1-2.475-5.974l3.5-3.5a1.502 1.502 0 0 0 0-2.121a1.537 1.537 0 0 0-2.121 0L3.415 5.394L2 3.98l1.99-1.988a3.585 3.585 0 0 1 4.95 0a3.504 3.504 0 0 1 0 4.949L5.439 10.44a1.502 1.502 0 0 0 0 2.121a1.537 1.537 0 0 0 2.122 0l4.024-4.024L13 9.95l-4.025 4.024A3.475 3.475 0 0 1 6.5 15z"
8
+ fill="currentColor"
9
+ />
10
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/BrushSize.svelte ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ ><path
7
+ fill="currentColor"
8
+ d="M2.753 2.933a.75.75 0 0 1 .814-.68l3.043.272c2.157.205 4.224.452 5.922.732c1.66.273 3.073.594 3.844.983c.197.1.412.233.578.415c.176.192.352.506.28.9c-.067.356-.304.59-.487.729a3.001 3.001 0 0 1-.695.369c-1.02.404-2.952.79-5.984 1.169c-1.442.18-2.489.357-3.214.522c.205.045.43.089.674.132c.992.174 2.241.323 3.568.437a31.21 31.21 0 0 1 3.016.398c.46.087.893.186 1.261.296c.352.105.707.236.971.412c.13.086.304.225.42.437a.988.988 0 0 1 .063.141A1.75 1.75 0 0 0 14.5 12.25v.158c-.758.154-1.743.302-2.986.444c-2.124.243-3.409.55-4.117.859c-.296.128-.442.236-.508.3c.026.037.073.094.156.17c.15.138.369.29.65.45c.56.316 1.282.61 1.979.838l2.637.814a.75.75 0 1 1-.443 1.433l-2.655-.819c-.754-.247-1.58-.578-2.257-.96a5.082 5.082 0 0 1-.924-.65c-.255-.233-.513-.544-.62-.935c-.12-.441-.016-.88.274-1.244c.261-.328.656-.574 1.113-.773c.92-.4 2.387-.727 4.545-.974c1.366-.156 2.354-.313 3.041-.462a16.007 16.007 0 0 0-.552-.114a29.716 29.716 0 0 0-2.865-.378c-1.352-.116-2.649-.27-3.7-.454c-.524-.092-1-.194-1.395-.307c-.376-.106-.75-.241-1.021-.426a1.186 1.186 0 0 1-.43-.49a.934.934 0 0 1 .059-.873c.13-.213.32-.352.472-.442a3.23 3.23 0 0 1 .559-.251c.807-.287 2.222-.562 4.37-.83c2.695-.338 4.377-.666 5.295-.962c-.638-.21-1.623-.427-2.89-.635c-1.65-.273-3.679-.515-5.816-.718l-3.038-.272a.75.75 0 0 1-.68-.814M17 12.25a.75.75 0 0 0-1.5 0v4.19l-.72-.72a.75.75 0 1 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l2-2a.75.75 0 1 0-1.06-1.06l-.72.72z"
9
+ /></svg
10
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Calendar.svelte ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="24px"
4
+ height="24px"
5
+ viewBox="0 0 24 24"
6
+ >
7
+ <rect
8
+ x="2"
9
+ y="4"
10
+ width="20"
11
+ height="18"
12
+ stroke="currentColor"
13
+ stroke-width="2"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ fill="none"
17
+ />
18
+ <line
19
+ x1="2"
20
+ y1="9"
21
+ x2="22"
22
+ y2="9"
23
+ stroke="currentColor"
24
+ stroke-width="2"
25
+ stroke-linecap="round"
26
+ stroke-linejoin="round"
27
+ fill="none"
28
+ />
29
+ <line
30
+ x1="7"
31
+ y1="2"
32
+ x2="7"
33
+ y2="6"
34
+ stroke="currentColor"
35
+ stroke-width="2"
36
+ stroke-linecap="round"
37
+ stroke-linejoin="round"
38
+ fill="none"
39
+ />
40
+ <line
41
+ x1="17"
42
+ y1="2"
43
+ x2="17"
44
+ y2="6"
45
+ stroke="currentColor"
46
+ stroke-width="2"
47
+ stroke-linecap="round"
48
+ stroke-linejoin="round"
49
+ fill="none"
50
+ />
51
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Camera.svelte ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ stroke="currentColor"
8
+ stroke-width="1.5"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ class="feather feather-camera"
12
+ >
13
+ <path
14
+ d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"
15
+ />
16
+ <circle cx="12" cy="13" r="4" />
17
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Chart.svelte ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg viewBox="0 0 32 32">
2
+ <path
3
+ d="M28.828 3.172a4.094 4.094 0 0 0-5.656 0L4.05 22.292A6.954 6.954 0 0 0 2 27.242V30h2.756a6.952 6.952 0 0 0 4.95-2.05L28.828 8.829a3.999 3.999 0 0 0 0-5.657zM10.91 18.26l2.829 2.829l-2.122 2.121l-2.828-2.828zm-2.619 8.276A4.966 4.966 0 0 1 4.756 28H4v-.759a4.967 4.967 0 0 1 1.464-3.535l1.91-1.91l2.829 2.828zM27.415 7.414l-12.261 12.26l-2.829-2.828l12.262-12.26a2.047 2.047 0 0 1 2.828 0a2 2 0 0 1 0 2.828z"
4
+ fill="currentColor"
5
+ />
6
+ <path
7
+ d="M6.5 15a3.5 3.5 0 0 1-2.475-5.974l3.5-3.5a1.502 1.502 0 0 0 0-2.121a1.537 1.537 0 0 0-2.121 0L3.415 5.394L2 3.98l1.99-1.988a3.585 3.585 0 0 1 4.95 0a3.504 3.504 0 0 1 0 4.949L5.439 10.44a1.502 1.502 0 0 0 0 2.121a1.537 1.537 0 0 0 2.122 0l4.024-4.024L13 9.95l-4.025 4.024A3.475 3.475 0 0 1 6.5 15z"
8
+ fill="currentColor"
9
+ />
10
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Chat.svelte ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--carbon"
7
+ width="100%"
8
+ height="100%"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 32 32"
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="M17.74 30L16 29l4-7h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.84Z"
15
+ />
16
+ <path fill="currentColor" d="M8 10h16v2H8zm0 6h10v2H8z" />
17
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Clear.svelte ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ width="100%"
3
+ height="100%"
4
+ viewBox="0 0 24 24"
5
+ version="1.1"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ xmlns:xlink="http://www.w3.org/1999/xlink"
8
+ xml:space="preserve"
9
+ stroke="currentColor"
10
+ style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;"
11
+ >
12
+ <g
13
+ transform="matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"
14
+ >
15
+ <path
16
+ d="M18,6L6.087,17.913"
17
+ style="fill:none;fill-rule:nonzero;stroke-width:2px;"
18
+ />
19
+ </g>
20
+ <path
21
+ d="M4.364,4.364L19.636,19.636"
22
+ style="fill:none;fill-rule:nonzero;stroke-width:2px;"
23
+ />
24
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Color.svelte ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="100%" height="100%" viewBox="0 0 32 32">
2
+ <circle cx="10" cy="12" r="2" fill="currentColor" />
3
+ <circle cx="16" cy="9" r="2" fill="currentColor" />
4
+ <circle cx="22" cy="12" r="2" fill="currentColor" />
5
+ <circle cx="23" cy="18" r="2" fill="currentColor" />
6
+ <circle cx="19" cy="23" r="2" fill="currentColor" />
7
+ <path
8
+ fill="currentColor"
9
+ d="M16.54 2A14 14 0 0 0 2 16a4.82 4.82 0 0 0 6.09 4.65l1.12-.31a3 3 0 0 1 3.79 2.9V27a3 3 0 0 0 3 3a14 14 0 0 0 14-14.54A14.05 14.05 0 0 0 16.54 2Zm8.11 22.31A11.93 11.93 0 0 1 16 28a1 1 0 0 1-1-1v-3.76a5 5 0 0 0-5-5a5.07 5.07 0 0 0-1.33.18l-1.12.31A2.82 2.82 0 0 1 4 16A12 12 0 0 1 16.47 4A12.18 12.18 0 0 1 28 15.53a11.89 11.89 0 0 1-3.35 8.79Z"
10
+ />
11
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Community.svelte ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"
2
+ ><path
3
+ d="M23,20a5,5,0,0,0-3.89,1.89L11.8,17.32a4.46,4.46,0,0,0,0-2.64l7.31-4.57A5,5,0,1,0,18,7a4.79,4.79,0,0,0,.2,1.32l-7.31,4.57a5,5,0,1,0,0,6.22l7.31,4.57A4.79,4.79,0,0,0,18,25a5,5,0,1,0,5-5ZM23,4a3,3,0,1,1-3,3A3,3,0,0,1,23,4ZM7,19a3,3,0,1,1,3-3A3,3,0,0,1,7,19Zm16,9a3,3,0,1,1,3-3A3,3,0,0,1,23,28Z"
4
+ fill="currentColor"
5
+ /></svg
6
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/DropdownArrow.svelte ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ class="dropdown-arrow"
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="100%"
5
+ height="100%"
6
+ viewBox="0 0 18 18"
7
+ >
8
+ <path d="M5 8l4 4 4-4z" />
9
+ </svg>
10
+
11
+ <style>
12
+ .dropdown-arrow {
13
+ fill: currentColor;
14
+ /* margin-right: var(--size-2); */
15
+ /* width: var(--size-5); */
16
+ }
17
+ </style>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Edit.svelte ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ stroke="currentColor"
8
+ stroke-width="1.5"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ class="feather feather-edit-2"
12
+ >
13
+ <path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" />
14
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Erase.svelte ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ ><g fill="none"
7
+ ><path
8
+ fill="currentColor"
9
+ d="m5.505 11.41l.53.53l-.53-.53ZM3 14.952h-.75H3ZM9.048 21v.75V21ZM11.41 5.505l-.53-.53l.53.53Zm1.831 12.34a.75.75 0 0 0 1.06-1.061l-1.06 1.06ZM7.216 9.697a.75.75 0 1 0-1.06 1.061l1.06-1.06Zm10.749 2.362l-5.905 5.905l1.06 1.06l5.905-5.904l-1.06-1.06Zm-11.93-.12l5.905-5.905l-1.06-1.06l-5.905 5.904l1.06 1.06Zm0 6.025c-.85-.85-1.433-1.436-1.812-1.933c-.367-.481-.473-.79-.473-1.08h-1.5c0 .749.312 1.375.78 1.99c.455.596 1.125 1.263 1.945 2.083l1.06-1.06Zm-1.06-7.086c-.82.82-1.49 1.488-1.945 2.084c-.468.614-.78 1.24-.78 1.99h1.5c0-.29.106-.6.473-1.08c.38-.498.962-1.083 1.812-1.933l-1.06-1.06Zm7.085 7.086c-.85.85-1.435 1.433-1.933 1.813c-.48.366-.79.472-1.08.472v1.5c.75 0 1.376-.312 1.99-.78c.596-.455 1.264-1.125 2.084-1.945l-1.06-1.06Zm-7.085 1.06c.82.82 1.487 1.49 2.084 1.945c.614.468 1.24.78 1.989.78v-1.5c-.29 0-.599-.106-1.08-.473c-.497-.38-1.083-.962-1.933-1.812l-1.06 1.06Zm12.99-12.99c.85.85 1.433 1.436 1.813 1.933c.366.481.472.79.472 1.08h1.5c0-.749-.312-1.375-.78-1.99c-.455-.596-1.125-1.263-1.945-2.083l-1.06 1.06Zm1.06 7.086c.82-.82 1.49-1.488 1.945-2.084c.468-.614.78-1.24.78-1.99h-1.5c0 .29-.106.6-.473 1.08c-.38.498-.962 1.083-1.812 1.933l1.06 1.06Zm0-8.146c-.82-.82-1.487-1.49-2.084-1.945c-.614-.468-1.24-.78-1.989-.78v1.5c.29 0 .599.106 1.08.473c.497.38 1.083.962 1.933 1.812l1.06-1.06Zm-7.085 1.06c.85-.85 1.435-1.433 1.933-1.812c.48-.367.79-.473 1.08-.473v-1.5c-.75 0-1.376.312-1.99.78c-.596.455-1.264 1.125-2.084 1.945l1.06 1.06Zm2.362 10.749L7.216 9.698l-1.06 1.061l7.085 7.085l1.06-1.06Z"
10
+ /><path
11
+ stroke="currentColor"
12
+ stroke-linecap="round"
13
+ stroke-width="1.5"
14
+ d="M9 21h12"
15
+ /></g
16
+ ></svg
17
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Error.svelte ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ fill="none"
3
+ stroke="currentColor"
4
+ viewBox="0 0 24 24"
5
+ width="100%"
6
+ height="100%"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ aria-hidden="true"
9
+ stroke-width="2"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ >
13
+ <path
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
17
+ />
18
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Eyedropper.svelte ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ ><path
7
+ fill="currentColor"
8
+ d="M21.03 2.97a3.578 3.578 0 0 0-5.06 0L14 4.94l-.013-.013a1.75 1.75 0 0 0-2.475 0l-.585.586a1.75 1.75 0 0 0 0 2.475l.012.012l-6.78 6.78a2.25 2.25 0 0 0-.659 1.592v.687l-1.28 2.347c-.836 1.533.841 3.21 2.374 2.375l2.347-1.28h.688a2.25 2.25 0 0 0 1.59-.66L16 13.061l.012.012a1.75 1.75 0 0 0 2.475 0l.586-.585a1.75 1.75 0 0 0 0-2.475L19.061 10l1.97-1.97a3.578 3.578 0 0 0 0-5.06ZM12 9.061l2.94 2.94l-6.78 6.78a.75.75 0 0 1-.531.22H6.75a.75.75 0 0 0-.359.09l-2.515 1.373a.234.234 0 0 1-.159.032a.264.264 0 0 1-.138-.075a.264.264 0 0 1-.075-.138a.234.234 0 0 1 .033-.158l1.372-2.515A.75.75 0 0 0 5 17.25v-.878a.75.75 0 0 1 .22-.53L12 9.06Z"
9
+ /></svg
10
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Forward.svelte ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="24px"
4
+ height="24px"
5
+ fill="currentColor"
6
+ stroke-width="1.5"
7
+ viewBox="0 0 24 24"
8
+ color="currentColor"
9
+ ><path
10
+ stroke="currentColor"
11
+ stroke-width="1.5"
12
+ stroke-linecap="round"
13
+ stroke-linejoin="round"
14
+ d="M2.956 5.704A.6.6 0 0 0 2 6.187v11.626a.6.6 0 0 0 .956.483l7.889-5.813a.6.6 0 0 0 0-.966l-7.89-5.813ZM13.956 5.704a.6.6 0 0 0-.956.483v11.626a.6.6 0 0 0 .956.483l7.889-5.813a.6.6 0 0 0 0-.966l-7.89-5.813Z"
15
+ /></svg
16
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Image.svelte ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ stroke="currentColor"
8
+ stroke-width="1.5"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ class="feather feather-image"
12
+ >
13
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
14
+ <circle cx="8.5" cy="8.5" r="1.5" />
15
+ <polyline points="21 15 16 10 5 21" />
16
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/JSON.svelte ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--mdi"
7
+ width="100%"
8
+ height="100%"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 24 24"
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="M5 3h2v2H5v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2 2 0 0 0-2-2H0v-2h1a2 2 0 0 0 2-2V5a2 2 0 0 1 2-2m14 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2a2 2 0 0 1-2-2V5h-2V3h2m-7 12a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m8 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1Z"
15
+ />
16
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Layers.svelte ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ width="100%"
3
+ height="100%"
4
+ viewBox="0 0 17 17"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <path
9
+ d="M1.35327 10.9495L6.77663 15.158C7.12221 15.4229 7.50051 15.5553 7.91154 15.5553C8.32258 15.5553 8.70126 15.4229 9.0476 15.158L14.471 10.9495"
10
+ stroke="currentColor"
11
+ stroke-width="1.5"
12
+ stroke-linecap="round"
13
+ />
14
+ <path
15
+ d="M7.23461 11.4324C7.23406 11.432 7.2335 11.4316 7.23295 11.4312L1.81496 7.2268C1.81471 7.22661 1.81446 7.22641 1.8142 7.22621C1.52269 6.99826 1.39429 6.73321 1.39429 6.37014C1.39429 6.00782 1.52236 5.74301 1.81325 5.51507C1.8136 5.5148 1.81394 5.51453 1.81428 5.51426L7.2331 1.30812C7.45645 1.13785 7.67632 1.06653 7.91159 1.06653C8.14692 1.06653 8.36622 1.13787 8.58861 1.30787C8.58915 1.30828 8.58969 1.30869 8.59023 1.30911L14.0082 5.51462C14.0085 5.51485 14.0088 5.51507 14.0091 5.51529C14.3008 5.74345 14.4289 6.00823 14.4289 6.37014C14.4289 6.73356 14.3006 6.99862 14.01 7.22634C14.0096 7.22662 14.0093 7.22689 14.0089 7.22717L8.59007 11.4322C8.36672 11.6024 8.14686 11.6738 7.91159 11.6738C7.67628 11.6738 7.45699 11.6024 7.23461 11.4324Z"
16
+ stroke="currentColor"
17
+ stroke-width="1.5"
18
+ />
19
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/LineChart.svelte ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--carbon"
7
+ width="100%"
8
+ height="100%"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 32 32"
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="M4 2H2v26a2 2 0 0 0 2 2h26v-2H4v-3h22v-8H4v-4h14V5H4Zm20 17v4H4v-4ZM16 7v4H4V7Z"
15
+ />
16
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Maximise.svelte ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ stroke="currentColor"
8
+ stroke-width="1.5"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ >
12
+ <path
13
+ d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"
14
+ />
15
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Microphone.svelte ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ stroke="currentColor"
8
+ stroke-width="2"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ class="feather feather-mic"
12
+ ><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z" /><path
13
+ d="M19 10v2a7 7 0 0 1-14 0v-2"
14
+ /><line x1="12" y1="19" x2="12" y2="23" /><line
15
+ x1="8"
16
+ y1="23"
17
+ x2="16"
18
+ y2="23"
19
+ /></svg
20
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Minimize.svelte ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ viewBox="0 0 24 24"
4
+ fill="none"
5
+ stroke="currentColor"
6
+ stroke-width="2"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ class="feather feather-minimize"
10
+ ><path
11
+ d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"
12
+ ></path></svg
13
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Pause.svelte ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="currentColor"
7
+ stroke="currentColor"
8
+ stroke-width="1.5"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ >
12
+ <rect x="6" y="4" width="4" height="16" />
13
+ <rect x="14" y="4" width="4" height="16" />
14
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Plot.svelte ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--carbon"
7
+ width="100%"
8
+ height="100%"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 32 32"
11
+ >
12
+ <circle cx="20" cy="4" r="2" fill="currentColor" />
13
+ <circle cx="8" cy="16" r="2" fill="currentColor" />
14
+ <circle cx="28" cy="12" r="2" fill="currentColor" />
15
+ <circle cx="11" cy="7" r="2" fill="currentColor" />
16
+ <circle cx="16" cy="24" r="2" fill="currentColor" />
17
+ <path
18
+ fill="currentColor"
19
+ d="M30 3.413L28.586 2L4 26.585V2H2v26a2 2 0 0 0 2 2h26v-2H5.413Z"
20
+ />
21
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Retry.svelte ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ stroke-width="1.5"
3
+ viewBox="0 0 24 24"
4
+ fill="none"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ color="currentColor"
7
+ >
8
+ <path
9
+ d="M19.1679 9C18.0247 6.46819 15.3006 4.5 11.9999 4.5C8.31459 4.5 5.05104 7.44668 4.54932 11"
10
+ stroke="currentColor"
11
+ stroke-width="1.5"
12
+ stroke-linecap="round"
13
+ stroke-linejoin="round"
14
+ ></path>
15
+ <path
16
+ d="M16 9H19.4C19.7314 9 20 8.73137 20 8.4V5"
17
+ stroke="currentColor"
18
+ stroke-width="1.5"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ ></path>
22
+ <path
23
+ d="M4.88146 15C5.92458 17.5318 8.64874 19.5 12.0494 19.5C15.7347 19.5 18.9983 16.5533 19.5 13"
24
+ stroke="currentColor"
25
+ stroke-width="1.5"
26
+ stroke-linecap="round"
27
+ stroke-linejoin="round"
28
+ ></path>
29
+ <path
30
+ d="M8.04932 15H4.64932C4.31795 15 4.04932 15.2686 4.04932 15.6V19"
31
+ stroke="currentColor"
32
+ stroke-width="1.5"
33
+ stroke-linecap="round"
34
+ stroke-linejoin="round"
35
+ ></path>
36
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Rotate.svelte ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 1024 1024"
6
+ ><path
7
+ fill="currentColor"
8
+ d="M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"
9
+ /><path
10
+ fill="currentColor"
11
+ d="M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5c42.1 5.2 82.1 18.2 119 38.7c38.1 21.2 71.2 49.7 98.4 84.3c27.1 34.7 46.7 73.7 58.1 115.8c11 40.7 14 82.7 8.9 124.8c-.7 5.4-1.4 10.8-2.4 16.1h74.9c14.8-103.6-11.3-213-81-302.3z"
12
+ /></svg
13
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/ScrollDownArrow.svelte ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ width="100%"
3
+ height="100%"
4
+ viewBox="0 0 24 24"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <path
9
+ d="M12 20L12 4M12 20L7 15M12 20L17 15"
10
+ stroke="currentColor"
11
+ stroke-width="2"
12
+ stroke-linecap="round"
13
+ stroke-linejoin="round"
14
+ />
15
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Send.svelte ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ viewBox="0 0 22 24"
3
+ width="100%"
4
+ height="100%"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ ><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g
8
+ id="SVGRepo_tracerCarrier"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ ></g><g id="SVGRepo_iconCarrier">
12
+ <path
13
+ d="M19.1168 12.1484C19.474 12.3581 19.9336 12.2384 20.1432 11.8811C20.3528 11.5238 20.2331 11.0643 19.8758 10.8547L19.1168 12.1484ZM6.94331 4.13656L6.55624 4.77902L6.56378 4.78344L6.94331 4.13656ZM5.92408 4.1598L5.50816 3.5357L5.50816 3.5357L5.92408 4.1598ZM5.51031 5.09156L4.76841 5.20151C4.77575 5.25101 4.78802 5.29965 4.80505 5.34671L5.51031 5.09156ZM7.12405 11.7567C7.26496 12.1462 7.69495 12.3477 8.08446 12.2068C8.47397 12.0659 8.67549 11.6359 8.53458 11.2464L7.12405 11.7567ZM19.8758 12.1484C20.2331 11.9388 20.3528 11.4793 20.1432 11.122C19.9336 10.7648 19.474 10.6451 19.1168 10.8547L19.8758 12.1484ZM6.94331 18.8666L6.56375 18.2196L6.55627 18.2241L6.94331 18.8666ZM5.92408 18.8433L5.50815 19.4674H5.50815L5.92408 18.8433ZM5.51031 17.9116L4.80505 17.6564C4.78802 17.7035 4.77575 17.7521 4.76841 17.8016L5.51031 17.9116ZM8.53458 11.7567C8.67549 11.3672 8.47397 10.9372 8.08446 10.7963C7.69495 10.6554 7.26496 10.8569 7.12405 11.2464L8.53458 11.7567ZM19.4963 12.2516C19.9105 12.2516 20.2463 11.9158 20.2463 11.5016C20.2463 11.0873 19.9105 10.7516 19.4963 10.7516V12.2516ZM7.82931 10.7516C7.4151 10.7516 7.07931 11.0873 7.07931 11.5016C7.07931 11.9158 7.4151 12.2516 7.82931 12.2516V10.7516ZM19.8758 10.8547L7.32284 3.48968L6.56378 4.78344L19.1168 12.1484L19.8758 10.8547ZM7.33035 3.49414C6.76609 3.15419 6.05633 3.17038 5.50816 3.5357L6.34 4.78391C6.40506 4.74055 6.4893 4.73863 6.55627 4.77898L7.33035 3.49414ZM5.50816 3.5357C4.95998 3.90102 4.67184 4.54987 4.76841 5.20151L6.25221 4.98161C6.24075 4.90427 6.27494 4.82727 6.34 4.78391L5.50816 3.5357ZM4.80505 5.34671L7.12405 11.7567L8.53458 11.2464L6.21558 4.83641L4.80505 5.34671ZM19.1168 10.8547L6.56378 18.2197L7.32284 19.5134L19.8758 12.1484L19.1168 10.8547ZM6.55627 18.2241C6.4893 18.2645 6.40506 18.2626 6.34 18.2192L5.50815 19.4674C6.05633 19.8327 6.76609 19.8489 7.33035 19.509L6.55627 18.2241ZM6.34 18.2192C6.27494 18.1759 6.24075 18.0988 6.25221 18.0215L4.76841 17.8016C4.67184 18.4532 4.95998 19.1021 5.50815 19.4674L6.34 18.2192ZM6.21558 18.1667L8.53458 11.7567L7.12405 11.2464L4.80505 17.6564L6.21558 18.1667ZM19.4963 10.7516H7.82931V12.2516H19.4963V10.7516Z"
14
+ fill="currentColor"
15
+ ></path>
16
+ </g></svg
17
+ >
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Spinner.svelte ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 50 50"
6
+ >
7
+ <circle
8
+ cx="25"
9
+ cy="25"
10
+ r="20"
11
+ fill="none"
12
+ stroke-width="3.0"
13
+ stroke-linecap="round"
14
+ stroke-dasharray="94.2477796076938 94.2477796076938"
15
+ stroke-dashoffset="0"
16
+ >
17
+ <animateTransform
18
+ attributeName="transform"
19
+ type="rotate"
20
+ from="0 25 25"
21
+ to="360 25 25"
22
+ repeatCount="indefinite"
23
+ />
24
+ </circle>
25
+ </svg>
26
+
27
+ <style>
28
+ svg {
29
+ animation: spin 1.5s linear infinite;
30
+ }
31
+
32
+ @keyframes spin {
33
+ 0% {
34
+ transform: rotate(0deg);
35
+ }
36
+ 100% {
37
+ transform: rotate(360deg);
38
+ }
39
+ }
40
+ </style>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Square.svelte ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script>
2
+ export let fill = "currentColor";
3
+ export let stroke_width = 1.5;
4
+ </script>
5
+
6
+ <svg
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ width="100%"
9
+ height="100%"
10
+ viewBox="0 0 24 24"
11
+ {fill}
12
+ stroke="currentColor"
13
+ stroke-width={`${stroke_width}`}
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ class="feather feather-square"
17
+ >
18
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
19
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/TextHighlight.svelte ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink"
4
+ aria-hidden="true"
5
+ role="img"
6
+ class="iconify iconify--carbon"
7
+ width="100%"
8
+ height="100%"
9
+ preserveAspectRatio="xMidYMid meet"
10
+ viewBox="0 0 32 32"
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="M12 15H5a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3h5V5a1 1 0 0 0-1-1H3V2h6a3 3 0 0 1 3 3zM5 9a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h5V9zm15 14v2a1 1 0 0 0 1 1h5v-4h-5a1 1 0 0 0-1 1z"
15
+ />
16
+ <path
17
+ fill="currentColor"
18
+ d="M2 30h28V2Zm26-2h-7a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3h5v-2a1 1 0 0 0-1-1h-6v-2h6a3 3 0 0 1 3 3Z"
19
+ />
20
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Trash.svelte ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ id="icon"
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ viewBox="0 0 32 32"
5
+ fill="currentColor"
6
+ >
7
+ <defs>
8
+ <style>
9
+ .cls-1 {
10
+ fill: none;
11
+ }
12
+ </style>
13
+ </defs>
14
+ <rect x="12" y="12" width="2" height="12" />
15
+ <rect x="18" y="12" width="2" height="12" />
16
+ <path d="M4,6V8H6V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8h2V6ZM8,28V8H24V28Z" />
17
+ <rect x="12" y="2" width="8" height="2" />
18
+ <rect
19
+ id="_Transparent_Rectangle_"
20
+ data-name="&lt;Transparent Rectangle&gt;"
21
+ class="cls-1"
22
+ width="32"
23
+ height="32"
24
+ />
25
+ </svg>
evalkit_tf437/lib/python3.10/site-packages/gradio/_frontend_code/icons/src/Trim.svelte ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="100%"
4
+ height="100%"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ stroke="currentColor"
8
+ stroke-width="2"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ class="feather feather-scissors"
12
+ ><circle cx="6" cy="6" r="3" /><circle cx="6" cy="18" r="3" /><line
13
+ x1="20"
14
+ y1="4"
15
+ x2="8.12"
16
+ y2="15.88"
17
+ /><line x1="14.47" y1="14.48" x2="20" y2="20" /><line
18
+ x1="8.12"
19
+ y1="8.12"
20
+ x2="12"
21
+ y2="12"
22
+ /></svg
23
+ >