Upload folder using huggingface_hub
Browse files- 5.49.1/column/Index.svelte +70 -0
- 5.49.1/column/package.json +32 -0
5.49.1/column/Index.svelte
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script lang="ts">
|
| 2 |
+
import { StatusTracker } from "@gradio/statustracker";
|
| 3 |
+
import type { LoadingStatus } from "@gradio/statustracker";
|
| 4 |
+
import type { Gradio } from "@gradio/utils";
|
| 5 |
+
|
| 6 |
+
export let scale: number | null = null;
|
| 7 |
+
export let min_width = 0;
|
| 8 |
+
export let elem_id = "";
|
| 9 |
+
export let elem_classes: string[] = [];
|
| 10 |
+
export let visible: boolean | "hidden" = true;
|
| 11 |
+
export let variant: "default" | "panel" | "compact" = "default";
|
| 12 |
+
export let loading_status: LoadingStatus | undefined = undefined;
|
| 13 |
+
export let gradio: Gradio | undefined = undefined;
|
| 14 |
+
export let show_progress = false;
|
| 15 |
+
</script>
|
| 16 |
+
|
| 17 |
+
<div
|
| 18 |
+
id={elem_id}
|
| 19 |
+
class="column {elem_classes.join(' ')}"
|
| 20 |
+
class:compact={variant === "compact"}
|
| 21 |
+
class:panel={variant === "panel"}
|
| 22 |
+
class:hide={!visible}
|
| 23 |
+
style:flex-grow={scale}
|
| 24 |
+
style:min-width="calc(min({min_width}px, 100%))"
|
| 25 |
+
>
|
| 26 |
+
{#if loading_status && show_progress && gradio}
|
| 27 |
+
<StatusTracker
|
| 28 |
+
autoscroll={gradio.autoscroll}
|
| 29 |
+
i18n={gradio.i18n}
|
| 30 |
+
{...loading_status}
|
| 31 |
+
status={loading_status
|
| 32 |
+
? loading_status.status == "pending"
|
| 33 |
+
? "generating"
|
| 34 |
+
: loading_status.status
|
| 35 |
+
: null}
|
| 36 |
+
/>
|
| 37 |
+
{/if}
|
| 38 |
+
<slot />
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
<style>
|
| 42 |
+
div {
|
| 43 |
+
display: flex;
|
| 44 |
+
position: relative;
|
| 45 |
+
flex-direction: column;
|
| 46 |
+
gap: var(--layout-gap);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
div > :global(*),
|
| 50 |
+
div > :global(.form > *) {
|
| 51 |
+
width: var(--size-full);
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.hide {
|
| 55 |
+
display: none;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.compact > :global(*),
|
| 59 |
+
.compact :global(.box) {
|
| 60 |
+
border-radius: 0;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.compact,
|
| 64 |
+
.panel {
|
| 65 |
+
border: solid var(--panel-border-width) var(--panel-border-color);
|
| 66 |
+
border-radius: var(--container-radius);
|
| 67 |
+
background: var(--panel-background-fill);
|
| 68 |
+
padding: var(--spacing-lg);
|
| 69 |
+
}
|
| 70 |
+
</style>
|
5.49.1/column/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@gradio/column",
|
| 3 |
+
"version": "0.2.2",
|
| 4 |
+
"description": "Gradio UI packages",
|
| 5 |
+
"type": "module",
|
| 6 |
+
"author": "",
|
| 7 |
+
"license": "ISC",
|
| 8 |
+
"main_changeset": true,
|
| 9 |
+
"private": false,
|
| 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 |
+
"./package.json": "./package.json"
|
| 18 |
+
},
|
| 19 |
+
"devDependencies": {
|
| 20 |
+
"@gradio/preview": "workspace:^",
|
| 21 |
+
"@gradio/statustracker": "workspace:^",
|
| 22 |
+
"@gradio/utils": "workspace:^"
|
| 23 |
+
},
|
| 24 |
+
"peerDependencies": {
|
| 25 |
+
"svelte": "^4.0.0"
|
| 26 |
+
},
|
| 27 |
+
"repository": {
|
| 28 |
+
"type": "git",
|
| 29 |
+
"url": "git+https://github.com/gradio-app/gradio.git",
|
| 30 |
+
"directory": "js/column"
|
| 31 |
+
}
|
| 32 |
+
}
|