gradio-pr-bot commited on
Commit
9b461b7
·
verified ·
1 Parent(s): a95ac61

Upload folder using huggingface_hub

Browse files
5.49.1/fallback/Example.svelte ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ export let value: string;
3
+ export let type: "gallery" | "table";
4
+ export let selected = false;
5
+ </script>
6
+
7
+ <div
8
+ class:table={type === "table"}
9
+ class:gallery={type === "gallery"}
10
+ class:selected
11
+ >
12
+ {value}
13
+ </div>
14
+
15
+ <style>
16
+ .gallery {
17
+ padding: var(--size-1) var(--size-2);
18
+ }
19
+ </style>
5.49.1/fallback/Index.svelte ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script lang="ts">
2
+ import { JsonView } from "@zerodevx/svelte-json-view";
3
+
4
+ import type { Gradio } from "@gradio/utils";
5
+ import { Block, Info } from "@gradio/atoms";
6
+ import { StatusTracker } from "@gradio/statustracker";
7
+ import type { LoadingStatus } from "@gradio/statustracker";
8
+ import type { SelectData } from "@gradio/utils";
9
+
10
+ export let elem_id = "";
11
+ export let elem_classes: string[] = [];
12
+ export let visible: boolean | "hidden" = true;
13
+ export let value = false;
14
+ export let container = true;
15
+ export let scale: number | null = null;
16
+ export let min_width: number | undefined = undefined;
17
+ export let loading_status: LoadingStatus;
18
+ export let gradio: Gradio<{
19
+ change: never;
20
+ select: SelectData;
21
+ input: never;
22
+ clear_status: LoadingStatus;
23
+ }>;
24
+ </script>
25
+
26
+ <Block {visible} {elem_id} {elem_classes} {container} {scale} {min_width}>
27
+ {#if loading_status}
28
+ <StatusTracker
29
+ autoscroll={gradio.autoscroll}
30
+ i18n={gradio.i18n}
31
+ {...loading_status}
32
+ on:clear_status={() => gradio.dispatch("clear_status", loading_status)}
33
+ />
34
+ {/if}
35
+
36
+ <JsonView json={value} />
37
+ </Block>
5.49.1/fallback/package.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@gradio/fallback",
3
+ "version": "0.4.29",
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
+ "./example": {
17
+ "gradio": "./Example.svelte",
18
+ "svelte": "./dist/Example.svelte",
19
+ "types": "./dist/Example.svelte.d.ts"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "dependencies": {
24
+ "@gradio/atoms": "workspace:^",
25
+ "@gradio/statustracker": "workspace:^",
26
+ "@gradio/utils": "workspace:^",
27
+ "@zerodevx/svelte-json-view": "^1.0.7"
28
+ },
29
+ "devDependencies": {
30
+ "@gradio/preview": "workspace:^"
31
+ },
32
+ "peerDependencies": {
33
+ "svelte": "^4.0.0"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/gradio-app/gradio.git",
38
+ "directory": "js/fallback"
39
+ }
40
+ }