From 6c8a064feeaa89a2ffc96260032f24f18eb032fa Mon Sep 17 00:00:00 2001 From: Hannah Date: Mon, 4 Nov 2024 17:23:40 +0000 Subject: [PATCH 01/27] Ensure non-form elements are correctly positioned when scale is applied (#9882) * apply margin when scale is null * remove console.log * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/shy-signs-taste.md | 6 ++++++ js/atoms/src/Block.svelte | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/shy-signs-taste.md diff --git a/.changeset/shy-signs-taste.md b/.changeset/shy-signs-taste.md new file mode 100644 index 0000000000000..6358145bbd99b --- /dev/null +++ b/.changeset/shy-signs-taste.md @@ -0,0 +1,6 @@ +--- +"@gradio/atoms": patch +"gradio": patch +--- + +fix:Ensure non-form elements are correctly positioned when scale is applied diff --git a/js/atoms/src/Block.svelte b/js/atoms/src/Block.svelte index d77331241f115..2190d033db77f 100644 --- a/js/atoms/src/Block.svelte +++ b/js/atoms/src/Block.svelte @@ -59,6 +59,7 @@ style:flex-grow={scale} style:min-width={`calc(min(${min_width}px, 100%))`} style:border-width="var(--block-border-width)" + class:auto-margin={scale === null} > @@ -74,6 +75,9 @@ background: var(--block-background-fill); width: 100%; line-height: var(--line-sm); + } + + .auto-margin { margin-left: auto; margin-right: auto; } From 4d9088354df528c8edf981f3e756d8927d3e8805 Mon Sep 17 00:00:00 2001 From: aliabid94 Date: Mon, 4 Nov 2024 09:54:35 -0800 Subject: [PATCH 02/27] Allows selection of directories in File Explorer (#9835) * changes * changes * changes * add changeset * changes * Update js/fileexplorer/shared/FileTree.svelte Co-authored-by: Hannah --------- Co-authored-by: Ali Abid Co-authored-by: gradio-pr-bot Co-authored-by: Hannah --- .changeset/bumpy-crews-open.md | 6 ++++ js/fileexplorer/shared/FileTree.svelte | 44 +++++++++++++++----------- 2 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 .changeset/bumpy-crews-open.md diff --git a/.changeset/bumpy-crews-open.md b/.changeset/bumpy-crews-open.md new file mode 100644 index 0000000000000..ede5dadff5598 --- /dev/null +++ b/.changeset/bumpy-crews-open.md @@ -0,0 +1,6 @@ +--- +"@gradio/fileexplorer": patch +"gradio": patch +--- + +fix:Allows selection of directories in File Explorer diff --git a/js/fileexplorer/shared/FileTree.svelte b/js/fileexplorer/shared/FileTree.svelte index f58d5fa9e7947..c7c591da6df32 100644 --- a/js/fileexplorer/shared/FileTree.svelte +++ b/js/fileexplorer/shared/FileTree.svelte @@ -67,24 +67,27 @@ {#each content as { type, name, valid }, i}
  • - x[0] === name && x.length === 1 - )} - on:change={(e) => { - let checked = e.detail; - dispatch("check", { - path: [...path, name], - checked, - type - }); - if (type === "folder" && checked) { - open_folder(i); - } - }} - /> + {#if type === "folder" && file_count === "single"} + + {:else} + x[0] === name && x.length === 1 + )} + on:change={(e) => { + let checked = e.detail; + dispatch("check", { + path: [...path, name], + checked, + type + }); + if (type === "folder" && checked) { + open_folder(i); + } + }} + /> + {/if} {#if type === "folder"} *) { transform: rotate(0); color: var(--body-text-color-subdued); From 7d77024cb8f9cfd39a6468de9534e58dcfa69f49 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Mon, 4 Nov 2024 10:39:04 -0800 Subject: [PATCH 03/27] Fix dataframe height increasing on scroll (#9892) * changes * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/social-terms-type.md | 6 ++++++ js/dataframe/shared/VirtualTable.svelte | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/social-terms-type.md diff --git a/.changeset/social-terms-type.md b/.changeset/social-terms-type.md new file mode 100644 index 0000000000000..55e636f5cd240 --- /dev/null +++ b/.changeset/social-terms-type.md @@ -0,0 +1,6 @@ +--- +"@gradio/dataframe": patch +"gradio": patch +--- + +fix:Fix dataframe height increasing on scroll diff --git a/js/dataframe/shared/VirtualTable.svelte b/js/dataframe/shared/VirtualTable.svelte index ecc47252ef2bb..714090e791ac9 100644 --- a/js/dataframe/shared/VirtualTable.svelte +++ b/js/dataframe/shared/VirtualTable.svelte @@ -248,7 +248,6 @@ return { index: i + start, data }; }); - $: actual_height = visible.length * average_height + 10; onMount(() => { rows = contents.children as HTMLCollectionOf; mounted = true; From dcfa7ad3e819002c0213a592ad726ccfd9e2bf0c Mon Sep 17 00:00:00 2001 From: Freddy Boulton Date: Mon, 4 Nov 2024 15:00:27 -0500 Subject: [PATCH 04/27] Enforce `meta` key present during preprocess in FileData payloads (#9898) * add code * add code * add changeset * revert * use is_file_obj_with_meta --------- Co-authored-by: gradio-pr-bot --- .changeset/four-swans-throw.md | 5 +++++ gradio/blocks.py | 17 +++++++---------- gradio/data_classes.py | 17 ++++++++++++++++- test/test_routes.py | 28 ++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 .changeset/four-swans-throw.md diff --git a/.changeset/four-swans-throw.md b/.changeset/four-swans-throw.md new file mode 100644 index 0000000000000..d31cb76317992 --- /dev/null +++ b/.changeset/four-swans-throw.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:Enforce `meta` key present during preprocess in FileData payloads diff --git a/gradio/blocks.py b/gradio/blocks.py index e464037eb036e..9b36eb4e39076 100644 --- a/gradio/blocks.py +++ b/gradio/blocks.py @@ -18,12 +18,7 @@ from collections.abc import AsyncIterator, Callable, Coroutine, Sequence, Set from pathlib import Path from types import ModuleType -from typing import ( - TYPE_CHECKING, - Any, - Literal, - cast, -) +from typing import TYPE_CHECKING, Any, Literal, Union, cast from urllib.parse import urlparse, urlunparse import anyio @@ -1702,10 +1697,12 @@ async def preprocess_data( check_in_upload_folder=not explicit_call, ) if getattr(block, "data_model", None) and inputs_cached is not None: - if issubclass(block.data_model, GradioModel): # type: ignore - inputs_cached = block.data_model(**inputs_cached) # type: ignore - elif issubclass(block.data_model, GradioRootModel): # type: ignore - inputs_cached = block.data_model(root=inputs_cached) # type: ignore + data_model = cast( + Union[GradioModel, GradioRootModel], block.data_model + ) + inputs_cached = data_model.model_validate( + inputs_cached, context={"validate_meta": True} + ) processed_input.append(block.preprocess(inputs_cached)) else: processed_input = inputs diff --git a/gradio/data_classes.py b/gradio/data_classes.py index 268509e857a66..15c3f3b264753 100644 --- a/gradio/data_classes.py +++ b/gradio/data_classes.py @@ -21,13 +21,15 @@ from fastapi import Request from gradio_client.documentation import document -from gradio_client.utils import traverse +from gradio_client.utils import is_file_obj_with_meta, traverse from pydantic import ( BaseModel, GetCoreSchemaHandler, GetJsonSchemaHandler, RootModel, ValidationError, + ValidationInfo, + model_validator, ) from pydantic.json_schema import JsonSchemaValue from pydantic_core import core_schema @@ -227,6 +229,19 @@ class FileData(GradioModel): is_stream: bool = False meta: dict = {"_type": "gradio.FileData"} + @model_validator(mode="before") + @classmethod + def validate_model(cls, v, info: ValidationInfo): + if ( + info.context + and info.context.get("validate_meta") + and not is_file_obj_with_meta(v) + ): + raise ValueError( + "The 'meta' field must be explicitly provided in the input data and be equal to {'_type': 'gradio.FileData'}." + ) + return v + @property def is_none(self) -> bool: """ diff --git a/test/test_routes.py b/test/test_routes.py index d085405e193ec..65c5985d76e1f 100644 --- a/test/test_routes.py +++ b/test/test_routes.py @@ -339,6 +339,7 @@ def test_get_file_created_by_app(self, test_client): { "path": file_response.json()[0], "size": os.path.getsize("test/test_files/alphabet.txt"), + "meta": {"_type": "gradio.FileData"}, } ], "fn_index": 0, @@ -1613,3 +1614,30 @@ def victim(url, results): t.join() assert not any(results), "attacker was able to modify a victim's config root url" + + +def test_file_without_meta_key_not_moved(): + demo = gr.Interface( + fn=lambda s: str(s), inputs=gr.File(type="binary"), outputs="textbox" + ) + + app, _, _ = demo.launch(prevent_thread_lock=True) + test_client = TestClient(app) + try: + with test_client: + req = test_client.post( + "gradio_api/run/predict", + json={ + "data": [ + { + "path": "test/test_files/alphabet.txt", + "orig_name": "test.txt", + "size": 4, + "mime_type": "text/plain", + } + ] + }, + ) + assert req.status_code == 500 + finally: + demo.close() From e10bbd236f5817698f5e5ac1c14c7ec179a725b6 Mon Sep 17 00:00:00 2001 From: Freddy Boulton Date: Mon, 4 Nov 2024 16:20:48 -0500 Subject: [PATCH 05/27] Fix live interfaces for audio/image streaming (#9883) * Fix live interfaces for audio/image streaming * add changeset * code * code --------- Co-authored-by: gradio-pr-bot Co-authored-by: Abubakar Abid --- .changeset/eight-women-lead.md | 6 +++++ gradio/events.py | 27 +++++++++++++++++++ gradio/interface.py | 16 ++++++++++- gradio/queueing.py | 10 +++++-- .../05_real-time-speech-recognition.md | 2 ++ js/audio/interactive/InteractiveAudio.svelte | 2 +- 6 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 .changeset/eight-women-lead.md diff --git a/.changeset/eight-women-lead.md b/.changeset/eight-women-lead.md new file mode 100644 index 0000000000000..dfc564dfa0658 --- /dev/null +++ b/.changeset/eight-women-lead.md @@ -0,0 +1,6 @@ +--- +"@gradio/audio": patch +"gradio": patch +--- + +fix:Fix live interfaces for audio/image streaming diff --git a/gradio/events.py b/gradio/events.py index 24e7085408e69..4bdc7d1e5a485 100644 --- a/gradio/events.py +++ b/gradio/events.py @@ -643,6 +643,17 @@ def inner(*args, **kwargs): event_trigger.event_name = _event_name # type: ignore event_trigger.has_trigger = _has_trigger # type: ignore event_trigger.callback = _callback # type: ignore + event_trigger.connection = _connection # type: ignore + event_specific_args = ( + [ + d["name"] + for d in _event_specific_args + if d.get("component_prop", "true") != "false" + ] + if _event_specific_args + else None + ) + event_trigger.event_specific_args = event_specific_args # type: ignore return event_trigger @@ -675,6 +686,8 @@ def on( concurrency_limit: int | None | Literal["default"] = "default", concurrency_id: str | None = None, show_api: bool = True, + time_limit: int | None = None, + stream_every: float = 0.5, ) -> Dependency: """ Sets up an event listener that triggers a function when the specified event(s) occur. This is especially @@ -700,6 +713,8 @@ def on( concurrency_limit: If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default). concurrency_id: If set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit. show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps as well as the Clients to use this event. If fn is None, show_api will automatically be set to False. + time_limit: The time limit for the function to run. Parameter only used for the `.stream()` event. + stream_every: The latency (in seconds) at which stream chunks are sent to the backend. Defaults to 0.5 seconds. Parameter only used for the `.stream()` event. Example: import gradio as gr with gr.Blocks() as demo: @@ -746,6 +761,8 @@ def wrapper(func): concurrency_id=concurrency_id, show_api=show_api, trigger_mode=trigger_mode, + time_limit=time_limit, + stream_every=stream_every, ) @wraps(func) @@ -793,6 +810,16 @@ def inner(*args, **kwargs): max_batch_size=max_batch_size, show_api=show_api, trigger_mode=trigger_mode, + connection="stream" + if any(t.connection == "stream" for t in (triggers_typed or [])) + else "sse", + event_specific_args=[ + a + for t in (triggers_typed or []) + for a in cast(list[str], t.event_specific_args or []) + ], + time_limit=time_limit, + stream_every=stream_every, ) set_cancel_events(methods, cancels) return Dependency(None, dep.get_config(), dep_index, fn) diff --git a/gradio/interface.py b/gradio/interface.py index f3bd7a8ef8c60..677dfac307531 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -142,6 +142,8 @@ def __init__( | Literal["auto"] | Literal["manual"] | None = None, + time_limit: int | None = 30, + stream_every: float = 0.5, **kwargs, ): """ @@ -182,6 +184,8 @@ def __init__( show_progress: how to show the progress animation while event is running: "full" shows a spinner which covers the output component area as well as a runtime display in the upper right corner, "minimal" only shows the runtime display, "hidden" shows no progress animation at all example_labels: a list of labels for each example. If provided, the length of this list should be the same as the number of examples, and these labels will be used in the UI instead of rendering the example values. fill_width: whether to horizontally expand to fill container fully. If False, centers and constrains app to a maximum width. + time_limit: The time limit for the stream to run. Default is 30 seconds. Parameter only used for streaming images or audio if the interface is live and the input components are set to "streaming=True". + stream_every: The latency (in seconds) at which stream chunks are sent to the backend. Defaults to 0.5 seconds. Parameter only used for streaming images or audio if the interface is live and the input components are set to "streaming=True". """ super().__init__( analytics_enabled=analytics_enabled, @@ -197,6 +201,8 @@ def __init__( fill_width=fill_width, **kwargs, ) + self.time_limit = time_limit + self.stream_every = stream_every self.api_name: str | Literal[False] | None = api_name self.interface_type = InterfaceTypes.STANDARD if (inputs is None or inputs == []) and (outputs is None or outputs == []): @@ -702,7 +708,9 @@ def attach_submit_events( preprocess=not (self.api_mode), postprocess=not (self.api_mode), show_progress="hidden" if streaming_event else self.show_progress, - trigger_mode="always_last", + trigger_mode="always_last" if not streaming_event else "multiple", + time_limit=self.time_limit, + stream_every=self.stream_every, ) else: if _submit_btn is None: @@ -716,6 +724,12 @@ def attach_submit_events( if component.has_event(Events.submit) ] + for component in self.input_components: + if getattr(component, "streaming", None): + warnings.warn( + "Streaming components are only supported in live interfaces." + ) + if _stop_btn: extra_output = [_submit_btn, _stop_btn] diff --git a/gradio/queueing.py b/gradio/queueing.py index c849c8a0e5156..2d5302305b97c 100644 --- a/gradio/queueing.py +++ b/gradio/queueing.py @@ -666,7 +666,9 @@ async def process_events( else ServerMessage.process_streaming, output=old_response, success=old_response is not None, - time_limit=cast(int, fn.time_limit) - first_iteration + time_limit=None + if not fn.time_limit + else cast(int, fn.time_limit) - first_iteration if event.streaming else None, ), @@ -679,7 +681,11 @@ async def process_events( if awake_events[0].streaming: awake_events, closed_events = await Queue.wait_for_batch( awake_events, - [cast(float, fn.time_limit) - first_iteration] + # We need to wait for all of the events to have the latest input data + # the max time is the time limit of the function or 30 seconds (arbitrary) but should + # never really take that long to make a request from the client to the server unless + # the client disconnected. + [cast(float, fn.time_limit or 30) - first_iteration] * len(awake_events), ) for closed_event in closed_events: diff --git a/guides/07_streaming/05_real-time-speech-recognition.md b/guides/07_streaming/05_real-time-speech-recognition.md index d0b2816344297..c3bdcbc9441a9 100644 --- a/guides/07_streaming/05_real-time-speech-recognition.md +++ b/guides/07_streaming/05_real-time-speech-recognition.md @@ -57,6 +57,8 @@ To make this a *streaming* demo, we need to make these changes: 2. Set `live=True` in the `Interface` 3. Add a `state` to the interface to store the recorded audio of a user +Tip: You can also set `time_limit` and `stream_every` parameters in the interface. The `time_limit` caps the amount of time each user's stream can take. The default is 30 seconds so users won't be able to stream audio for more than 30 seconds. The `stream_every` parameter controls how frequently data is sent to your function. By default it is 0.5 seconds. + Take a look below. $code_stream_asr diff --git a/js/audio/interactive/InteractiveAudio.svelte b/js/audio/interactive/InteractiveAudio.svelte index 1157e5df96724..4b37e26bed9e5 100644 --- a/js/audio/interactive/InteractiveAudio.svelte +++ b/js/audio/interactive/InteractiveAudio.svelte @@ -201,7 +201,7 @@ dispatch("start_recording"); if (!inited) await prepare_audio(); header = undefined; - if (streaming) { + if (streaming && recorder.state != "recording") { recorder.start(stream_every * 1000); } } From b6725cf6c1fe9667dc10e1988976ed36d84d73d3 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Tue, 5 Nov 2024 06:50:27 +0900 Subject: [PATCH 06/27] Lite auto-load imported modules with `pyodide.loadPackagesFromImports` (#9726) * Call pyodide.loadPackagesFromImports() for each Python file and dispatch an event including the result * Fix * Call pyodide.loadPackagesFromImports from run_code * Update DemosLite to listen the modules-auto-loaded event and upload the requirements automatically * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot Co-authored-by: Ali Abdalla --- .changeset/heavy-dogs-start.md | 8 +++ .../src/lib/components/DemosLite.svelte | 10 ++- js/lite/src/LiteIndex.svelte | 8 ++- js/lite/src/dev/App.svelte | 6 ++ js/lite/src/index.ts | 57 +++++++++++------ js/wasm/src/message-types.ts | 10 ++- js/wasm/src/webworker/index.ts | 61 ++++++++++++++++++- js/wasm/src/worker-proxy.ts | 7 +++ 8 files changed, 141 insertions(+), 26 deletions(-) create mode 100644 .changeset/heavy-dogs-start.md diff --git a/.changeset/heavy-dogs-start.md b/.changeset/heavy-dogs-start.md new file mode 100644 index 0000000000000..df5d2e939ab0d --- /dev/null +++ b/.changeset/heavy-dogs-start.md @@ -0,0 +1,8 @@ +--- +"@gradio/lite": minor +"@gradio/wasm": minor +"gradio": minor +"website": minor +--- + +feat:Lite auto-load imported modules with `pyodide.loadPackagesFromImports` diff --git a/js/_website/src/lib/components/DemosLite.svelte b/js/_website/src/lib/components/DemosLite.svelte index a67f5f1d2deda..8b171bc336813 100644 --- a/js/_website/src/lib/components/DemosLite.svelte +++ b/js/_website/src/lib/components/DemosLite.svelte @@ -224,7 +224,7 @@ You only return the content of \`requirements.txt\`, without any other texts or let controller: { run_code: (code: string) => Promise; install: (requirements: string[]) => Promise; - }; + } & EventTarget; function debounce( func: (...args: T) => Promise, @@ -277,6 +277,14 @@ You only return the content of \`requirements.txt\`, without any other texts or debounced_run_code = debounce(controller.run_code, debounce_timeout); debounced_install = debounce(controller.install, debounce_timeout); + controller.addEventListener("modules-auto-loaded", (event) => { + console.debug("Modules auto-loaded", event); + const packages = (event as CustomEvent).detail as { name: string }[]; + const packageNames = packages.map((pkg) => pkg.name); + selected_demo.requirements = + selected_demo.requirements.concat(packageNames); + }); + mounted = true; } catch (error) { console.error("Error loading Gradio Lite:", error); diff --git a/js/lite/src/LiteIndex.svelte b/js/lite/src/LiteIndex.svelte index 13ec67b02308d..4058d414be6ec 100644 --- a/js/lite/src/LiteIndex.svelte +++ b/js/lite/src/LiteIndex.svelte @@ -4,7 +4,7 @@ import "@gradio/theme/pollen.css"; import "@gradio/theme/typography.css"; - import { onDestroy, SvelteComponent } from "svelte"; + import { onDestroy, SvelteComponent, createEventDispatcher } from "svelte"; import Index from "@self/spa"; import Playground from "./Playground.svelte"; import ErrorDisplay from "./ErrorDisplay.svelte"; @@ -94,6 +94,12 @@ error = (event as CustomEvent).detail; }); + const dispatch = createEventDispatcher(); + + worker_proxy.addEventListener("modules-auto-loaded", (event) => { + dispatch("modules-auto-loaded", (event as CustomEvent).detail); + }); + // Internally, the execution of `runPythonCode()` or `runPythonFile()` is queued // and its promise will be resolved after the Pyodide is loaded and the worker initialization is done // (see the await in the `onmessage` callback in the webworker code) diff --git a/js/lite/src/dev/App.svelte b/js/lite/src/dev/App.svelte index 8c82dd151ca23..f7b52aa833315 100644 --- a/js/lite/src/dev/App.svelte +++ b/js/lite/src/dev/App.svelte @@ -79,6 +79,12 @@ def hi(name): playground: false, layout: null }); + controller.addEventListener("modules-auto-loaded", (event) => { + const packages = (event as CustomEvent).detail as { name: string }[]; + const packageNames = packages.map((pkg) => pkg.name); + requirements_txt += + "\n" + packageNames.map((line) => line + " # auto-loaded").join("\n"); + }); }); onDestroy(() => { controller.unmount(); diff --git a/js/lite/src/index.ts b/js/lite/src/index.ts index 1f60b077979e4..2fb12f6bfd4d7 100644 --- a/js/lite/src/index.ts +++ b/js/lite/src/index.ts @@ -21,18 +21,45 @@ import LiteIndex from "./LiteIndex.svelte"; // As a result, the users of the Wasm app will have to load the CSS file manually. // const ENTRY_CSS = "__ENTRY_CSS__"; -export interface GradioAppController { - run_code: (code: string) => Promise; - run_file: (path: string) => Promise; - write: ( +export class GradioAppController extends EventTarget { + constructor(private lite_svelte_app: LiteIndex) { + super(); + + this.lite_svelte_app.$on("error", (event: CustomEvent) => { + this.dispatchEvent(new CustomEvent("error", { detail: event.detail })); + }); + this.lite_svelte_app.$on("modules-auto-loaded", (event: CustomEvent) => { + this.dispatchEvent( + new CustomEvent("modules-auto-loaded", { detail: event.detail }) + ); + }); + } + + run_code = (code: string): Promise => { + return this.lite_svelte_app.run_code(code); + }; + run_file = (path: string): Promise => { + return this.lite_svelte_app.run_file(path); + }; + write = ( path: string, data: string | ArrayBufferView, opts: any - ) => Promise; - rename: (old_path: string, new_path: string) => Promise; - unlink: (path: string) => Promise; - install: (requirements: string[]) => Promise; - unmount: () => void; + ): Promise => { + return this.lite_svelte_app.write(path, data, opts); + }; + rename = (old_path: string, new_path: string): Promise => { + return this.lite_svelte_app.rename(old_path, new_path); + }; + unlink = (path: string): Promise => { + return this.lite_svelte_app.unlink(path); + }; + install = (requirements: string[]): Promise => { + return this.lite_svelte_app.install(requirements); + }; + unmount = (): void => { + this.lite_svelte_app.$destroy(); + }; } export interface Options { @@ -88,17 +115,7 @@ export function create(options: Options): GradioAppController { } }); - return { - run_code: app.run_code, - run_file: app.run_file, - write: app.write, - rename: app.rename, - unlink: app.unlink, - install: app.install, - unmount() { - app.$destroy(); - } - }; + return new GradioAppController(app); } /** diff --git a/js/wasm/src/message-types.ts b/js/wasm/src/message-types.ts index 8649c9eaf4312..24996fbe5a9af 100644 --- a/js/wasm/src/message-types.ts +++ b/js/wasm/src/message-types.ts @@ -1,4 +1,5 @@ import type { ASGIScope } from "./asgi-types"; +import type { PackageData } from "pyodide"; export interface EmscriptenFile { data: string | ArrayBufferView; @@ -113,4 +114,11 @@ export interface OutMessageProgressUpdate extends OutMessageBase { log: string; }; } -export type OutMessage = OutMessageProgressUpdate; +export interface OutMessageModulesAutoLoaded extends OutMessageBase { + type: "modules-auto-loaded"; + data: { + packages: PackageData[]; + }; +} + +export type OutMessage = OutMessageProgressUpdate | OutMessageModulesAutoLoaded; diff --git a/js/wasm/src/webworker/index.ts b/js/wasm/src/webworker/index.ts index 065170f7dc6e3..218f830b1fd98 100644 --- a/js/wasm/src/webworker/index.ts +++ b/js/wasm/src/webworker/index.ts @@ -2,6 +2,7 @@ /* eslint-env worker */ import type { + PackageData, PyodideInterface, loadPyodide as loadPyodideValue } from "pyodide"; @@ -175,7 +176,8 @@ anyio.to_thread.run_sync = mocked_anyio_to_thread_run_sync async function initializeApp( appId: string, options: InMessageInitApp["data"], - updateProgress: (log: string) => void + updateProgress: (log: string) => void, + onModulesAutoLoaded: (packages: PackageData[]) => void ): Promise { const appHomeDir = getAppHomeDir(appId); console.debug("Creating a home directory for the app.", { @@ -186,6 +188,7 @@ async function initializeApp( console.debug("Mounting files.", options.files); updateProgress("Mounting files"); + const pythonFileContents: string[] = []; await Promise.all( Object.keys(options.files).map(async (path) => { const file = options.files[path]; @@ -204,6 +207,10 @@ async function initializeApp( const appifiedPath = resolveAppHomeBasedPath(appId, path); console.debug(`Write a file "${appifiedPath}"`); writeFileWithParents(pyodide, appifiedPath, data, opts); + + if (typeof data === "string" && path.endsWith(".py")) { + pythonFileContents.push(data); + } }) ); console.debug("Files are mounted."); @@ -213,7 +220,22 @@ async function initializeApp( await micropip.install.callKwargs(options.requirements, { keep_going: true }); console.debug("Packages are installed."); - if (options.requirements.includes("matplotlib")) { + console.debug("Auto-loading modules."); + const loadedPackagesArr = await Promise.all( + pythonFileContents.map((source) => pyodide.loadPackagesFromImports(source)) + ); + const loadedPackagesSet = new Set(loadedPackagesArr.flat()); // Remove duplicates + const loadedPackages = Array.from(loadedPackagesSet); + if (loadedPackages.length > 0) { + onModulesAutoLoaded(loadedPackages); + } + const loadedPackageNames = loadedPackages.map((pkg) => pkg.name); + console.debug("Modules are auto-loaded.", loadedPackages); + + if ( + options.requirements.includes("matplotlib") || + loadedPackageNames.includes("matplotlib") + ) { console.debug("Setting matplotlib backend."); updateProgress("Setting matplotlib backend"); // Ref: https://github.com/pyodide/pyodide/issues/561#issuecomment-1992613717 @@ -274,6 +296,15 @@ function setupMessageHandler(receiver: MessageTransceiver): void { }; receiver.postMessage(message); }; + const onModulesAutoLoaded = (packages: PackageData[]) => { + const message: OutMessage = { + type: "modules-auto-loaded", + data: { + packages + } + }; + receiver.postMessage(message); + }; // App initialization is per app or receiver, so its promise is managed in this scope. let appReadyPromise: Promise | undefined = undefined; @@ -320,7 +351,12 @@ function setupMessageHandler(receiver: MessageTransceiver): void { await envReadyPromise; if (msg.type === "init-app") { - appReadyPromise = initializeApp(appId, msg.data, updateProgress); + appReadyPromise = initializeApp( + appId, + msg.data, + updateProgress, + onModulesAutoLoaded + ); const replyMessage: ReplyMessageSuccess = { type: "reply:success", @@ -347,6 +383,15 @@ function setupMessageHandler(receiver: MessageTransceiver): void { case "run-python-code": { unload_local_modules(); + console.debug(`Auto install the requirements`); + const loadedPackages = await pyodide.loadPackagesFromImports( + msg.data.code + ); + if (loadedPackages.length > 0) { + onModulesAutoLoaded(loadedPackages); + } + console.debug("Modules are auto-loaded.", loadedPackages); + await run_code(appId, getAppHomeDir(appId), msg.data.code); const replyMessage: ReplyMessageSuccess = { @@ -380,6 +425,16 @@ function setupMessageHandler(receiver: MessageTransceiver): void { case "file:write": { const { path, data: fileData, opts } = msg.data; + if (typeof fileData === "string" && path.endsWith(".py")) { + console.debug(`Auto install the requirements in ${path}`); + const loadedPackages = + await pyodide.loadPackagesFromImports(fileData); + if (loadedPackages.length > 0) { + onModulesAutoLoaded(loadedPackages); + } + console.debug("Modules are auto-loaded.", loadedPackages); + } + const appifiedPath = resolveAppHomeBasedPath(appId, path); console.debug(`Write a file "${appifiedPath}"`); diff --git a/js/wasm/src/worker-proxy.ts b/js/wasm/src/worker-proxy.ts index ca03bfc50e1ea..81e5496c41962 100644 --- a/js/wasm/src/worker-proxy.ts +++ b/js/wasm/src/worker-proxy.ts @@ -166,6 +166,13 @@ export class WorkerProxy extends EventTarget { ); break; } + case "modules-auto-loaded": { + this.dispatchEvent( + new CustomEvent("modules-auto-loaded", { + detail: msg.data.packages + }) + ); + } } } From fa5d4339d6aafda529150d9536b895e2b239c831 Mon Sep 17 00:00:00 2001 From: Freddy Boulton Date: Mon, 4 Nov 2024 16:50:52 -0500 Subject: [PATCH 07/27] Do not load code in gr.NO_RELOAD in the reload mode watch thread (#9886) * add code * add changeset * no if __name__ reload twice --------- Co-authored-by: gradio-pr-bot --- .changeset/wet-knives-type.md | 5 +++++ gradio/http_server.py | 2 ++ gradio/utils.py | 23 +++++++++++++++++++++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .changeset/wet-knives-type.md diff --git a/.changeset/wet-knives-type.md b/.changeset/wet-knives-type.md new file mode 100644 index 0000000000000..f9a4f23020dc3 --- /dev/null +++ b/.changeset/wet-knives-type.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +fix:Do not load code in gr.NO_RELOAD in the reload mode watch thread diff --git a/gradio/http_server.py b/gradio/http_server.py index 848895d1e686b..1425310c596d8 100644 --- a/gradio/http_server.py +++ b/gradio/http_server.py @@ -2,6 +2,7 @@ import os import socket +import sys import threading import time from functools import partial @@ -144,6 +145,7 @@ def start_server( demo_name=GRADIO_WATCH_DEMO_NAME, stop_event=threading.Event(), demo_file=GRADIO_WATCH_DEMO_PATH, + watch_module=sys.modules["__main__"], ) server = Server(config=config, reloader=reloader) server.run_in_thread() diff --git a/gradio/utils.py b/gradio/utils.py index 2778b30385497..e38c21a703d4f 100644 --- a/gradio/utils.py +++ b/gradio/utils.py @@ -136,6 +136,7 @@ def __init__( watch_dirs: list[str], watch_module_name: str, demo_file: str, + watch_module: ModuleType, stop_event: threading.Event, demo_name: str = "demo", ) -> None: @@ -146,6 +147,7 @@ def __init__( self.stop_event = stop_event self.demo_name = demo_name self.demo_file = Path(demo_file) + self.watch_module = watch_module @property def running_app(self) -> App: @@ -195,9 +197,22 @@ def _is_gr_no_reload(expr: ast.AST) -> bool: and expr.test.attr == "NO_RELOAD" ) + def _is_if_name_main(expr: ast.AST) -> bool: + """Find the if __name__ == '__main__': block.""" + return ( + isinstance(expr, ast.If) + and isinstance(expr.test, ast.Compare) + and isinstance(expr.test.left, ast.Name) + and expr.test.left.id == "__name__" + and len(expr.test.ops) == 1 + and isinstance(expr.test.ops[0], ast.Eq) + and isinstance(expr.test.comparators[0], ast.Constant) + and expr.test.comparators[0].s == "__main__" + ) + # Find the positions of the code blocks to load for node in ast.walk(tree): - if _is_gr_no_reload(node): + if _is_gr_no_reload(node) or _is_if_name_main(node): assert isinstance(node, ast.If) # noqa: S101 node.body = [ast.Pass(lineno=node.lineno, col_offset=node.col_offset)] @@ -259,7 +274,11 @@ def iter_py_files() -> Iterator[Path]: mtimes = {} # Need to import the module in this thread so that the # module is available in the namespace of this thread - module = importlib.import_module(reloader.watch_module_name) + module = reloader.watch_module + no_reload_source_code = _remove_no_reload_codeblocks(str(reloader.demo_file)) + exec(no_reload_source_code, module.__dict__) + sys.modules[reloader.watch_module_name] = module + while reloader.should_watch(): changed = get_changes() if changed: From b5eaba1d6d6938197f105e5906a07fe2b2bba704 Mon Sep 17 00:00:00 2001 From: Gradio PR Bot <121576822+gradio-pr-bot@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:59:10 -0800 Subject: [PATCH 08/27] chore: update versions (#9874) Co-authored-by: github-actions[bot] --- .changeset/beige-badgers-argue.md | 6 ------ .changeset/bumpy-crews-open.md | 6 ------ .changeset/chatty-kings-visit.md | 7 ------- .changeset/eight-women-lead.md | 6 ------ .changeset/empty-monkeys-do.md | 8 -------- .changeset/fluffy-cats-drop.md | 5 ----- .changeset/four-swans-throw.md | 5 ----- .changeset/giant-baboons-lick.md | 6 ------ .changeset/heavy-dogs-start.md | 8 -------- .changeset/late-candies-boil.md | 6 ------ .changeset/long-wolves-serve.md | 5 ----- .changeset/moody-crews-pull.md | 6 ------ .changeset/shy-signs-taste.md | 6 ------ .changeset/silver-planes-guess.md | 5 ----- .changeset/slick-crabs-move.md | 6 ------ .changeset/slow-baboons-report.md | 6 ------ .changeset/social-terms-type.md | 6 ------ .changeset/tidy-bikes-allow.md | 6 ------ .changeset/wet-knives-type.md | 5 ----- CHANGELOG.md | 27 +++++++++++++++++++++++++++ gradio/CHANGELOG.md | 27 +++++++++++++++++++++++++++ gradio/package.json | 2 +- js/_website/CHANGELOG.md | 11 +++++++++++ js/_website/package.json | 2 +- js/accordion/CHANGELOG.md | 12 ++++++++++++ js/accordion/package.json | 2 +- js/annotatedimage/CHANGELOG.md | 9 +++++++++ js/annotatedimage/package.json | 2 +- js/app/CHANGELOG.md | 7 +++++++ js/app/package.json | 2 +- js/atoms/CHANGELOG.md | 10 ++++++++++ js/atoms/package.json | 2 +- js/audio/CHANGELOG.md | 14 ++++++++++++++ js/audio/package.json | 2 +- js/box/CHANGELOG.md | 6 ++++++ js/box/package.json | 2 +- js/button/CHANGELOG.md | 6 ++++++ js/button/package.json | 2 +- js/chatbot/CHANGELOG.md | 17 +++++++++++++++++ js/chatbot/package.json | 2 +- js/checkbox/CHANGELOG.md | 7 +++++++ js/checkbox/package.json | 2 +- js/checkboxgroup/CHANGELOG.md | 7 +++++++ js/checkboxgroup/package.json | 2 +- js/code/CHANGELOG.md | 9 +++++++++ js/code/package.json | 2 +- js/colorpicker/CHANGELOG.md | 7 +++++++ js/colorpicker/package.json | 2 +- js/column/CHANGELOG.md | 6 ++++++ js/component-test/CHANGELOG.md | 6 ++++++ js/component-test/package.json | 2 +- js/core/CHANGELOG.md | 24 ++++++++++++++++++++++++ js/core/package.json | 2 +- js/dataframe/CHANGELOG.md | 13 +++++++++++++ js/dataframe/package.json | 2 +- js/dataset/CHANGELOG.md | 8 ++++++++ js/dataset/package.json | 2 +- js/datetime/CHANGELOG.md | 7 +++++++ js/datetime/package.json | 2 +- js/downloadbutton/CHANGELOG.md | 6 ++++++ js/downloadbutton/package.json | 2 +- js/dropdown/CHANGELOG.md | 7 +++++++ js/dropdown/package.json | 2 +- js/fallback/CHANGELOG.md | 7 +++++++ js/fallback/package.json | 2 +- js/file/CHANGELOG.md | 14 ++++++++++++++ js/file/package.json | 2 +- js/fileexplorer/CHANGELOG.md | 14 ++++++++++++++ js/fileexplorer/package.json | 2 +- js/form/CHANGELOG.md | 6 ++++++ js/form/package.json | 2 +- js/gallery/CHANGELOG.md | 15 +++++++++++++++ js/gallery/package.json | 2 +- js/highlightedtext/CHANGELOG.md | 7 +++++++ js/highlightedtext/package.json | 2 +- js/html/CHANGELOG.md | 7 +++++++ js/html/package.json | 2 +- js/image/CHANGELOG.md | 9 +++++++++ js/image/package.json | 2 +- js/imageeditor/CHANGELOG.md | 10 ++++++++++ js/imageeditor/package.json | 2 +- js/json/CHANGELOG.md | 7 +++++++ js/json/package.json | 2 +- js/label/CHANGELOG.md | 7 +++++++ js/label/package.json | 2 +- js/lite/CHANGELOG.md | 13 +++++++++++++ js/lite/package.json | 2 +- js/markdown/CHANGELOG.md | 7 +++++++ js/markdown/package.json | 2 +- js/model3D/CHANGELOG.md | 9 +++++++++ js/model3D/package.json | 2 +- js/multimodaltextbox/CHANGELOG.md | 10 ++++++++++ js/multimodaltextbox/package.json | 2 +- js/nativeplot/CHANGELOG.md | 11 +++++++++++ js/nativeplot/package.json | 2 +- js/number/CHANGELOG.md | 7 +++++++ js/number/package.json | 2 +- js/paramviewer/CHANGELOG.md | 7 +++++++ js/paramviewer/package.json | 2 +- js/plot/CHANGELOG.md | 7 +++++++ js/plot/package.json | 2 +- js/radio/CHANGELOG.md | 7 +++++++ js/radio/package.json | 2 +- js/row/CHANGELOG.md | 6 ++++++ js/simpledropdown/CHANGELOG.md | 7 +++++++ js/simpledropdown/package.json | 2 +- js/simpleimage/CHANGELOG.md | 9 +++++++++ js/simpleimage/package.json | 2 +- js/simpletextbox/CHANGELOG.md | 7 +++++++ js/simpletextbox/package.json | 2 +- js/slider/CHANGELOG.md | 7 +++++++ js/slider/package.json | 2 +- js/spa/CHANGELOG.md | 7 +++++++ js/statustracker/CHANGELOG.md | 6 ++++++ js/statustracker/package.json | 2 +- js/tabitem/CHANGELOG.md | 6 ++++++ js/textbox/CHANGELOG.md | 11 +++++++++++ js/textbox/package.json | 2 +- js/tootils/CHANGELOG.md | 6 ++++++ js/tootils/package.json | 2 +- js/upload/CHANGELOG.md | 11 +++++++++++ js/upload/package.json | 2 +- js/uploadbutton/CHANGELOG.md | 7 +++++++ js/uploadbutton/package.json | 2 +- js/video/CHANGELOG.md | 10 ++++++++++ js/video/package.json | 2 +- js/wasm/CHANGELOG.md | 7 +++++++ js/wasm/package.json | 2 +- 128 files changed, 593 insertions(+), 166 deletions(-) delete mode 100644 .changeset/beige-badgers-argue.md delete mode 100644 .changeset/bumpy-crews-open.md delete mode 100644 .changeset/chatty-kings-visit.md delete mode 100644 .changeset/eight-women-lead.md delete mode 100644 .changeset/empty-monkeys-do.md delete mode 100644 .changeset/fluffy-cats-drop.md delete mode 100644 .changeset/four-swans-throw.md delete mode 100644 .changeset/giant-baboons-lick.md delete mode 100644 .changeset/heavy-dogs-start.md delete mode 100644 .changeset/late-candies-boil.md delete mode 100644 .changeset/long-wolves-serve.md delete mode 100644 .changeset/moody-crews-pull.md delete mode 100644 .changeset/shy-signs-taste.md delete mode 100644 .changeset/silver-planes-guess.md delete mode 100644 .changeset/slick-crabs-move.md delete mode 100644 .changeset/slow-baboons-report.md delete mode 100644 .changeset/social-terms-type.md delete mode 100644 .changeset/tidy-bikes-allow.md delete mode 100644 .changeset/wet-knives-type.md diff --git a/.changeset/beige-badgers-argue.md b/.changeset/beige-badgers-argue.md deleted file mode 100644 index 5a3f6af31a2d5..0000000000000 --- a/.changeset/beige-badgers-argue.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/accordion": minor -"gradio": minor ---- - -feat:Adds `.expand()` and `.collapse()` events to `gr.Accordion` diff --git a/.changeset/bumpy-crews-open.md b/.changeset/bumpy-crews-open.md deleted file mode 100644 index ede5dadff5598..0000000000000 --- a/.changeset/bumpy-crews-open.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/fileexplorer": patch -"gradio": patch ---- - -fix:Allows selection of directories in File Explorer diff --git a/.changeset/chatty-kings-visit.md b/.changeset/chatty-kings-visit.md deleted file mode 100644 index 6f0411c39f120..0000000000000 --- a/.changeset/chatty-kings-visit.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@gradio/lite": patch -"@gradio/wasm": patch -"gradio": patch ---- - -feat:Lite worker refactoring diff --git a/.changeset/eight-women-lead.md b/.changeset/eight-women-lead.md deleted file mode 100644 index dfc564dfa0658..0000000000000 --- a/.changeset/eight-women-lead.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/audio": patch -"gradio": patch ---- - -fix:Fix live interfaces for audio/image streaming diff --git a/.changeset/empty-monkeys-do.md b/.changeset/empty-monkeys-do.md deleted file mode 100644 index 64beae5a23e12..0000000000000 --- a/.changeset/empty-monkeys-do.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@gradio/atoms": minor -"@gradio/file": minor -"@gradio/upload": minor -"gradio": minor ---- - -feat:Allow uploading more files in gr.File diff --git a/.changeset/fluffy-cats-drop.md b/.changeset/fluffy-cats-drop.md deleted file mode 100644 index e0a0154ce01f7..0000000000000 --- a/.changeset/fluffy-cats-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -fix:Fixes for ChatInterface Examples when additional inputs are provided diff --git a/.changeset/four-swans-throw.md b/.changeset/four-swans-throw.md deleted file mode 100644 index d31cb76317992..0000000000000 --- a/.changeset/four-swans-throw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": minor ---- - -feat:Enforce `meta` key present during preprocess in FileData payloads diff --git a/.changeset/giant-baboons-lick.md b/.changeset/giant-baboons-lick.md deleted file mode 100644 index 2a5b1f2581806..0000000000000 --- a/.changeset/giant-baboons-lick.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/file": minor -"gradio": minor ---- - -feat:Add `.download()` event to `gr.File` diff --git a/.changeset/heavy-dogs-start.md b/.changeset/heavy-dogs-start.md deleted file mode 100644 index df5d2e939ab0d..0000000000000 --- a/.changeset/heavy-dogs-start.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@gradio/lite": minor -"@gradio/wasm": minor -"gradio": minor -"website": minor ---- - -feat:Lite auto-load imported modules with `pyodide.loadPackagesFromImports` diff --git a/.changeset/late-candies-boil.md b/.changeset/late-candies-boil.md deleted file mode 100644 index 698b3e6e58e69..0000000000000 --- a/.changeset/late-candies-boil.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/core": minor -"gradio": minor ---- - -feat:Fix frontend errors on ApiDocs and RecordingSnippet diff --git a/.changeset/long-wolves-serve.md b/.changeset/long-wolves-serve.md deleted file mode 100644 index 62bebcb235d52..0000000000000 --- a/.changeset/long-wolves-serve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -fix:Fix Loading SSR'd apps via gr.load diff --git a/.changeset/moody-crews-pull.md b/.changeset/moody-crews-pull.md deleted file mode 100644 index 5843ed1b40b72..0000000000000 --- a/.changeset/moody-crews-pull.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/nativeplot": minor -"gradio": minor ---- - -feat:Allow plot tooltip to show extra columns diff --git a/.changeset/shy-signs-taste.md b/.changeset/shy-signs-taste.md deleted file mode 100644 index 6358145bbd99b..0000000000000 --- a/.changeset/shy-signs-taste.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/atoms": patch -"gradio": patch ---- - -fix:Ensure non-form elements are correctly positioned when scale is applied diff --git a/.changeset/silver-planes-guess.md b/.changeset/silver-planes-guess.md deleted file mode 100644 index c9f2278e9a063..0000000000000 --- a/.changeset/silver-planes-guess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -fix:Fixes LoginButton for SSR diff --git a/.changeset/slick-crabs-move.md b/.changeset/slick-crabs-move.md deleted file mode 100644 index b34708ff7a7c8..0000000000000 --- a/.changeset/slick-crabs-move.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/gallery": patch -"gradio": patch ---- - -fix:Ensure gallery share button is positioned correctly diff --git a/.changeset/slow-baboons-report.md b/.changeset/slow-baboons-report.md deleted file mode 100644 index 087e7a0ce9e5b..0000000000000 --- a/.changeset/slow-baboons-report.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/chatbot": patch -"gradio": patch ---- - -fix:Make sure the Tool accordion is closed if it is not the last message diff --git a/.changeset/social-terms-type.md b/.changeset/social-terms-type.md deleted file mode 100644 index 55e636f5cd240..0000000000000 --- a/.changeset/social-terms-type.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/dataframe": patch -"gradio": patch ---- - -fix:Fix dataframe height increasing on scroll diff --git a/.changeset/tidy-bikes-allow.md b/.changeset/tidy-bikes-allow.md deleted file mode 100644 index b3674cd96aa66..0000000000000 --- a/.changeset/tidy-bikes-allow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/textbox": patch -"gradio": patch ---- - -fix:Fix: Resolve copy button visibility issue in Textbox component diff --git a/.changeset/wet-knives-type.md b/.changeset/wet-knives-type.md deleted file mode 100644 index f9a4f23020dc3..0000000000000 --- a/.changeset/wet-knives-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -fix:Do not load code in gr.NO_RELOAD in the reload mode watch thread diff --git a/CHANGELOG.md b/CHANGELOG.md index b9ab81d080a28..b1bfd54e10f89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # gradio +## 5.5.0 + +### Features + +- [#9875](https://github.com/gradio-app/gradio/pull/9875) [`8305ff8`](https://github.com/gradio-app/gradio/commit/8305ff8712183f27174cfb891548ad7cc1c67fed) - Adds `.expand()` and `.collapse()` events to `gr.Accordion`. Thanks @abidlabs! +- [#9424](https://github.com/gradio-app/gradio/pull/9424) [`a1582a6`](https://github.com/gradio-app/gradio/commit/a1582a6dca494618c734208cade87acfdac91004) - Lite worker refactoring. Thanks @whitphx! +- [#9891](https://github.com/gradio-app/gradio/pull/9891) [`fc12496`](https://github.com/gradio-app/gradio/commit/fc124964a1b4922e54a4ca4755f0a536dfae1a21) - Allow uploading more files in gr.File. Thanks @hannahblair! +- [#9898](https://github.com/gradio-app/gradio/pull/9898) [`dcfa7ad`](https://github.com/gradio-app/gradio/commit/dcfa7ad3e819002c0213a592ad726ccfd9e2bf0c) - Enforce `meta` key present during preprocess in FileData payloads. Thanks @freddyaboulton! +- [#9887](https://github.com/gradio-app/gradio/pull/9887) [`d407c00`](https://github.com/gradio-app/gradio/commit/d407c007153705a7f5446f4601c12f208ec32a5b) - Add `.download()` event to `gr.File`. Thanks @abidlabs! +- [#9726](https://github.com/gradio-app/gradio/pull/9726) [`b6725cf`](https://github.com/gradio-app/gradio/commit/b6725cf6c1fe9667dc10e1988976ed36d84d73d3) - Lite auto-load imported modules with `pyodide.loadPackagesFromImports`. Thanks @whitphx! +- [#9786](https://github.com/gradio-app/gradio/pull/9786) [`f109497`](https://github.com/gradio-app/gradio/commit/f109497e8281b3429b58e3f6a293dd63ebcc08af) - Fix frontend errors on ApiDocs and RecordingSnippet. Thanks @whitphx! +- [#9800](https://github.com/gradio-app/gradio/pull/9800) [`d1cfe1e`](https://github.com/gradio-app/gradio/commit/d1cfe1e9defa06f927aec2671656fe77514dd0fa) - Allow plot tooltip to show extra columns. Thanks @aliabid94! + +### Fixes + +- [#9835](https://github.com/gradio-app/gradio/pull/9835) [`4d90883`](https://github.com/gradio-app/gradio/commit/4d9088354df528c8edf981f3e756d8927d3e8805) - Allows selection of directories in File Explorer. Thanks @aliabid94! +- [#9883](https://github.com/gradio-app/gradio/pull/9883) [`e10bbd2`](https://github.com/gradio-app/gradio/commit/e10bbd236f5817698f5e5ac1c14c7ec179a725b6) - Fix live interfaces for audio/image streaming. Thanks @freddyaboulton! +- [#9804](https://github.com/gradio-app/gradio/pull/9804) [`458a38c`](https://github.com/gradio-app/gradio/commit/458a38cabb8e378bb008b1abec8eee8b780fe712) - Fixes for ChatInterface Examples when additional inputs are provided. Thanks @dawoodkhan82! +- [#9827](https://github.com/gradio-app/gradio/pull/9827) [`7ed8d02`](https://github.com/gradio-app/gradio/commit/7ed8d02979e8ad4db6ef62b29ce080f31bcf9a0d) - Fix Loading SSR'd apps via gr.load. Thanks @freddyaboulton! +- [#9882](https://github.com/gradio-app/gradio/pull/9882) [`6c8a064`](https://github.com/gradio-app/gradio/commit/6c8a064feeaa89a2ffc96260032f24f18eb032fa) - Ensure non-form elements are correctly positioned when scale is applied. Thanks @hannahblair! +- [#9880](https://github.com/gradio-app/gradio/pull/9880) [`120198f`](https://github.com/gradio-app/gradio/commit/120198fe2da2ded9e8f27549b9dfd1cd81992ec4) - Fixes LoginButton for SSR. Thanks @dawoodkhan82! +- [#9881](https://github.com/gradio-app/gradio/pull/9881) [`6866a54`](https://github.com/gradio-app/gradio/commit/6866a5433afe7e29ad73bac10ecbc3b44f5867f4) - Ensure gallery share button is positioned correctly. Thanks @hannahblair! +- [#9826](https://github.com/gradio-app/gradio/pull/9826) [`69acfeb`](https://github.com/gradio-app/gradio/commit/69acfebffd0d3479a40352de19c8763863557428) - Make sure the Tool accordion is closed if it is not the last message. Thanks @freddyaboulton! +- [#9892](https://github.com/gradio-app/gradio/pull/9892) [`7d77024`](https://github.com/gradio-app/gradio/commit/7d77024cb8f9cfd39a6468de9534e58dcfa69f49) - Fix dataframe height increasing on scroll. Thanks @abidlabs! +- [#9859](https://github.com/gradio-app/gradio/pull/9859) [`c1cb5be`](https://github.com/gradio-app/gradio/commit/c1cb5be2d79fce5d25032366b5864700ba9d1114) - Fix: Resolve copy button visibility issue in Textbox component. Thanks @rahulsamant37! +- [#9886](https://github.com/gradio-app/gradio/pull/9886) [`fa5d433`](https://github.com/gradio-app/gradio/commit/fa5d4339d6aafda529150d9536b895e2b239c831) - Do not load code in gr.NO_RELOAD in the reload mode watch thread. Thanks @freddyaboulton! + ## 5.4.0 ### Features diff --git a/gradio/CHANGELOG.md b/gradio/CHANGELOG.md index b9ab81d080a28..b1bfd54e10f89 100644 --- a/gradio/CHANGELOG.md +++ b/gradio/CHANGELOG.md @@ -1,5 +1,32 @@ # gradio +## 5.5.0 + +### Features + +- [#9875](https://github.com/gradio-app/gradio/pull/9875) [`8305ff8`](https://github.com/gradio-app/gradio/commit/8305ff8712183f27174cfb891548ad7cc1c67fed) - Adds `.expand()` and `.collapse()` events to `gr.Accordion`. Thanks @abidlabs! +- [#9424](https://github.com/gradio-app/gradio/pull/9424) [`a1582a6`](https://github.com/gradio-app/gradio/commit/a1582a6dca494618c734208cade87acfdac91004) - Lite worker refactoring. Thanks @whitphx! +- [#9891](https://github.com/gradio-app/gradio/pull/9891) [`fc12496`](https://github.com/gradio-app/gradio/commit/fc124964a1b4922e54a4ca4755f0a536dfae1a21) - Allow uploading more files in gr.File. Thanks @hannahblair! +- [#9898](https://github.com/gradio-app/gradio/pull/9898) [`dcfa7ad`](https://github.com/gradio-app/gradio/commit/dcfa7ad3e819002c0213a592ad726ccfd9e2bf0c) - Enforce `meta` key present during preprocess in FileData payloads. Thanks @freddyaboulton! +- [#9887](https://github.com/gradio-app/gradio/pull/9887) [`d407c00`](https://github.com/gradio-app/gradio/commit/d407c007153705a7f5446f4601c12f208ec32a5b) - Add `.download()` event to `gr.File`. Thanks @abidlabs! +- [#9726](https://github.com/gradio-app/gradio/pull/9726) [`b6725cf`](https://github.com/gradio-app/gradio/commit/b6725cf6c1fe9667dc10e1988976ed36d84d73d3) - Lite auto-load imported modules with `pyodide.loadPackagesFromImports`. Thanks @whitphx! +- [#9786](https://github.com/gradio-app/gradio/pull/9786) [`f109497`](https://github.com/gradio-app/gradio/commit/f109497e8281b3429b58e3f6a293dd63ebcc08af) - Fix frontend errors on ApiDocs and RecordingSnippet. Thanks @whitphx! +- [#9800](https://github.com/gradio-app/gradio/pull/9800) [`d1cfe1e`](https://github.com/gradio-app/gradio/commit/d1cfe1e9defa06f927aec2671656fe77514dd0fa) - Allow plot tooltip to show extra columns. Thanks @aliabid94! + +### Fixes + +- [#9835](https://github.com/gradio-app/gradio/pull/9835) [`4d90883`](https://github.com/gradio-app/gradio/commit/4d9088354df528c8edf981f3e756d8927d3e8805) - Allows selection of directories in File Explorer. Thanks @aliabid94! +- [#9883](https://github.com/gradio-app/gradio/pull/9883) [`e10bbd2`](https://github.com/gradio-app/gradio/commit/e10bbd236f5817698f5e5ac1c14c7ec179a725b6) - Fix live interfaces for audio/image streaming. Thanks @freddyaboulton! +- [#9804](https://github.com/gradio-app/gradio/pull/9804) [`458a38c`](https://github.com/gradio-app/gradio/commit/458a38cabb8e378bb008b1abec8eee8b780fe712) - Fixes for ChatInterface Examples when additional inputs are provided. Thanks @dawoodkhan82! +- [#9827](https://github.com/gradio-app/gradio/pull/9827) [`7ed8d02`](https://github.com/gradio-app/gradio/commit/7ed8d02979e8ad4db6ef62b29ce080f31bcf9a0d) - Fix Loading SSR'd apps via gr.load. Thanks @freddyaboulton! +- [#9882](https://github.com/gradio-app/gradio/pull/9882) [`6c8a064`](https://github.com/gradio-app/gradio/commit/6c8a064feeaa89a2ffc96260032f24f18eb032fa) - Ensure non-form elements are correctly positioned when scale is applied. Thanks @hannahblair! +- [#9880](https://github.com/gradio-app/gradio/pull/9880) [`120198f`](https://github.com/gradio-app/gradio/commit/120198fe2da2ded9e8f27549b9dfd1cd81992ec4) - Fixes LoginButton for SSR. Thanks @dawoodkhan82! +- [#9881](https://github.com/gradio-app/gradio/pull/9881) [`6866a54`](https://github.com/gradio-app/gradio/commit/6866a5433afe7e29ad73bac10ecbc3b44f5867f4) - Ensure gallery share button is positioned correctly. Thanks @hannahblair! +- [#9826](https://github.com/gradio-app/gradio/pull/9826) [`69acfeb`](https://github.com/gradio-app/gradio/commit/69acfebffd0d3479a40352de19c8763863557428) - Make sure the Tool accordion is closed if it is not the last message. Thanks @freddyaboulton! +- [#9892](https://github.com/gradio-app/gradio/pull/9892) [`7d77024`](https://github.com/gradio-app/gradio/commit/7d77024cb8f9cfd39a6468de9534e58dcfa69f49) - Fix dataframe height increasing on scroll. Thanks @abidlabs! +- [#9859](https://github.com/gradio-app/gradio/pull/9859) [`c1cb5be`](https://github.com/gradio-app/gradio/commit/c1cb5be2d79fce5d25032366b5864700ba9d1114) - Fix: Resolve copy button visibility issue in Textbox component. Thanks @rahulsamant37! +- [#9886](https://github.com/gradio-app/gradio/pull/9886) [`fa5d433`](https://github.com/gradio-app/gradio/commit/fa5d4339d6aafda529150d9536b895e2b239c831) - Do not load code in gr.NO_RELOAD in the reload mode watch thread. Thanks @freddyaboulton! + ## 5.4.0 ### Features diff --git a/gradio/package.json b/gradio/package.json index 4227d4b2a6f67..cf4506f3bfaa6 100644 --- a/gradio/package.json +++ b/gradio/package.json @@ -1,6 +1,6 @@ { "name": "gradio", - "version": "5.4.0", + "version": "5.5.0", "description": "", "python": "true" } \ No newline at end of file diff --git a/js/_website/CHANGELOG.md b/js/_website/CHANGELOG.md index 40ca7f0243d7f..ede7ba3481eb8 100644 --- a/js/_website/CHANGELOG.md +++ b/js/_website/CHANGELOG.md @@ -1,5 +1,16 @@ # website +## 0.42.0 + +### Features + +- [#9726](https://github.com/gradio-app/gradio/pull/9726) [`b6725cf`](https://github.com/gradio-app/gradio/commit/b6725cf6c1fe9667dc10e1988976ed36d84d73d3) - Lite auto-load imported modules with `pyodide.loadPackagesFromImports`. Thanks @whitphx! + +### Dependency updates + +- @gradio/code@0.10.7 +- @gradio/paramviewer@0.5.6 + ## 0.41.0 ### Features diff --git a/js/_website/package.json b/js/_website/package.json index 66b533d8b7080..4e2efb0fc3c49 100644 --- a/js/_website/package.json +++ b/js/_website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "0.41.0", + "version": "0.42.0", "private": true, "scripts": { "dev": "pip install boto3 && python generate_jsons/generate.py && vite dev", diff --git a/js/accordion/CHANGELOG.md b/js/accordion/CHANGELOG.md index 5ee332b251267..1a7d520c54e65 100644 --- a/js/accordion/CHANGELOG.md +++ b/js/accordion/CHANGELOG.md @@ -1,5 +1,17 @@ # @gradio/accordion +## 0.5.0 + +### Features + +- [#9875](https://github.com/gradio-app/gradio/pull/9875) [`8305ff8`](https://github.com/gradio-app/gradio/commit/8305ff8712183f27174cfb891548ad7cc1c67fed) - Adds `.expand()` and `.collapse()` events to `gr.Accordion`. Thanks @abidlabs! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/column@0.2.0 + ## 0.4.5 ### Dependency updates diff --git a/js/accordion/package.json b/js/accordion/package.json index 68bd9030a42ea..f7396a4984866 100644 --- a/js/accordion/package.json +++ b/js/accordion/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/accordion", - "version": "0.4.5", + "version": "0.5.0", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/annotatedimage/CHANGELOG.md b/js/annotatedimage/CHANGELOG.md index 75664cfd5dbd9..6f8a0a95b3f88 100644 --- a/js/annotatedimage/CHANGELOG.md +++ b/js/annotatedimage/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/annotatedimage +## 0.8.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.8.6 ### Dependency updates diff --git a/js/annotatedimage/package.json b/js/annotatedimage/package.json index a9cb74316d155..3f77f26d6b98e 100644 --- a/js/annotatedimage/package.json +++ b/js/annotatedimage/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/annotatedimage", - "version": "0.8.6", + "version": "0.8.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/app/CHANGELOG.md b/js/app/CHANGELOG.md index 1ee4b6702f466..56f38c3cf10cd 100644 --- a/js/app/CHANGELOG.md +++ b/js/app/CHANGELOG.md @@ -1,5 +1,12 @@ # @self/app +## 1.43.1 + +### Dependency updates + +- @gradio/wasm@0.15.0 +- @gradio/core@0.3.0 + ## 1.43.0 ### Features diff --git a/js/app/package.json b/js/app/package.json index 8d16ca65f8bc8..1da7cd1c56558 100644 --- a/js/app/package.json +++ b/js/app/package.json @@ -1,6 +1,6 @@ { "name": "@self/app", - "version": "1.43.0", + "version": "1.43.1", "private": true, "scripts": { "dev": "vite dev", diff --git a/js/atoms/CHANGELOG.md b/js/atoms/CHANGELOG.md index 49c1835343ff7..bed80f2c95a12 100644 --- a/js/atoms/CHANGELOG.md +++ b/js/atoms/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/atoms +## 0.11.0 + +### Features + +- [#9891](https://github.com/gradio-app/gradio/pull/9891) [`fc12496`](https://github.com/gradio-app/gradio/commit/fc124964a1b4922e54a4ca4755f0a536dfae1a21) - Allow uploading more files in gr.File. Thanks @hannahblair! + +### Fixes + +- [#9882](https://github.com/gradio-app/gradio/pull/9882) [`6c8a064`](https://github.com/gradio-app/gradio/commit/6c8a064feeaa89a2ffc96260032f24f18eb032fa) - Ensure non-form elements are correctly positioned when scale is applied. Thanks @hannahblair! + ## 0.10.1 ### Fixes diff --git a/js/atoms/package.json b/js/atoms/package.json index d4b7dfc890415..f56b04bb17463 100644 --- a/js/atoms/package.json +++ b/js/atoms/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/atoms", - "version": "0.10.1", + "version": "0.11.0", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/audio/CHANGELOG.md b/js/audio/CHANGELOG.md index 632fd13102e83..19f6317deb2af 100644 --- a/js/audio/CHANGELOG.md +++ b/js/audio/CHANGELOG.md @@ -1,5 +1,19 @@ # @gradio/audio +## 0.14.7 + +### Fixes + +- [#9883](https://github.com/gradio-app/gradio/pull/9883) [`e10bbd2`](https://github.com/gradio-app/gradio/commit/e10bbd236f5817698f5e5ac1c14c7ec179a725b6) - Fix live interfaces for audio/image streaming. Thanks @freddyaboulton! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/button@0.3.6 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.14.6 ### Dependency updates diff --git a/js/audio/package.json b/js/audio/package.json index fdf13adf3e745..5dff97bb8a383 100644 --- a/js/audio/package.json +++ b/js/audio/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/audio", - "version": "0.14.6", + "version": "0.14.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/box/CHANGELOG.md b/js/box/CHANGELOG.md index 6a053709181ef..0d25901616eb9 100644 --- a/js/box/CHANGELOG.md +++ b/js/box/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/box +## 0.2.5 + +### Dependency updates + +- @gradio/atoms@0.11.0 + ## 0.2.4 ### Dependency updates diff --git a/js/box/package.json b/js/box/package.json index e35cb503dace0..a429d5db98888 100644 --- a/js/box/package.json +++ b/js/box/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/box", - "version": "0.2.4", + "version": "0.2.5", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/button/CHANGELOG.md b/js/button/CHANGELOG.md index d7307635fe707..9b6099b433adf 100644 --- a/js/button/CHANGELOG.md +++ b/js/button/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/button +## 0.3.6 + +### Dependency updates + +- @gradio/upload@0.14.0 + ## 0.3.5 ### Dependency updates diff --git a/js/button/package.json b/js/button/package.json index c1e3cbf3ff208..7ae1f1cba34d4 100644 --- a/js/button/package.json +++ b/js/button/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/button", - "version": "0.3.5", + "version": "0.3.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/chatbot/CHANGELOG.md b/js/chatbot/CHANGELOG.md index dae773fde3110..44cf3d90eec81 100644 --- a/js/chatbot/CHANGELOG.md +++ b/js/chatbot/CHANGELOG.md @@ -1,5 +1,22 @@ # @gradio/chatbot +## 0.16.2 + +### Fixes + +- [#9826](https://github.com/gradio-app/gradio/pull/9826) [`69acfeb`](https://github.com/gradio-app/gradio/commit/69acfebffd0d3479a40352de19c8763863557428) - Make sure the Tool accordion is closed if it is not the last message. Thanks @freddyaboulton! + +### Dependency updates + +- @gradio/video@0.11.7 +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 +- @gradio/image@0.16.7 +- @gradio/gallery@0.13.7 +- @gradio/plot@0.9.1 + ## 0.16.1 ### Fixes diff --git a/js/chatbot/package.json b/js/chatbot/package.json index f8595c6583121..6e3e55adcd963 100644 --- a/js/chatbot/package.json +++ b/js/chatbot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/chatbot", - "version": "0.16.1", + "version": "0.16.2", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/checkbox/CHANGELOG.md b/js/checkbox/CHANGELOG.md index 6741167fb800b..bede2531026dd 100644 --- a/js/checkbox/CHANGELOG.md +++ b/js/checkbox/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/checkbox +## 0.4.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.4.5 ### Dependency updates diff --git a/js/checkbox/package.json b/js/checkbox/package.json index df6afcba5de61..d569971d7f3a8 100644 --- a/js/checkbox/package.json +++ b/js/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/checkbox", - "version": "0.4.5", + "version": "0.4.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/checkboxgroup/CHANGELOG.md b/js/checkboxgroup/CHANGELOG.md index e40879d23a430..5d44f32f31bd1 100644 --- a/js/checkboxgroup/CHANGELOG.md +++ b/js/checkboxgroup/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/checkboxgroup +## 0.6.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.6.5 ### Dependency updates diff --git a/js/checkboxgroup/package.json b/js/checkboxgroup/package.json index 9c315e74efd66..e39e36f2bf98c 100644 --- a/js/checkboxgroup/package.json +++ b/js/checkboxgroup/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/checkboxgroup", - "version": "0.6.5", + "version": "0.6.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/code/CHANGELOG.md b/js/code/CHANGELOG.md index 18ef4bfb8bf09..eacb0f3224f7c 100644 --- a/js/code/CHANGELOG.md +++ b/js/code/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/code +## 0.10.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.10.6 ### Dependency updates diff --git a/js/code/package.json b/js/code/package.json index 388fd18b08b6b..5ec006d85a4f4 100644 --- a/js/code/package.json +++ b/js/code/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/code", - "version": "0.10.6", + "version": "0.10.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/colorpicker/CHANGELOG.md b/js/colorpicker/CHANGELOG.md index 9895eea5aab2d..0dbacc7dee20f 100644 --- a/js/colorpicker/CHANGELOG.md +++ b/js/colorpicker/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/colorpicker +## 0.4.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.4.5 ### Dependency updates diff --git a/js/colorpicker/package.json b/js/colorpicker/package.json index e7bc0450ecef1..96e56d2f54267 100644 --- a/js/colorpicker/package.json +++ b/js/colorpicker/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/colorpicker", - "version": "0.4.5", + "version": "0.4.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/column/CHANGELOG.md b/js/column/CHANGELOG.md index 5fea0df49c337..e9d4ea16eb035 100644 --- a/js/column/CHANGELOG.md +++ b/js/column/CHANGELOG.md @@ -4,6 +4,12 @@ ### Dependency updates +- @gradio/statustracker@0.9.4 + +## 0.2.0 + +### Dependency updates + - @gradio/statustracker@0.9.3 ## 0.2.0 diff --git a/js/component-test/CHANGELOG.md b/js/component-test/CHANGELOG.md index 51fbb36bb4bdd..35941b5dd7107 100644 --- a/js/component-test/CHANGELOG.md +++ b/js/component-test/CHANGELOG.md @@ -1,5 +1,11 @@ # @self/component-test +## 0.3.1 + +### Dependency updates + +- @gradio/video@0.11.7 + ## 0.3.0 ### Features diff --git a/js/component-test/package.json b/js/component-test/package.json index 8b4fde260110d..e0ae65758b15d 100644 --- a/js/component-test/package.json +++ b/js/component-test/package.json @@ -1,6 +1,6 @@ { "name": "@self/component-test", - "version": "0.3.0", + "version": "0.3.1", "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/js/core/CHANGELOG.md b/js/core/CHANGELOG.md index b272bee3f23d4..f2b385daeb3b7 100644 --- a/js/core/CHANGELOG.md +++ b/js/core/CHANGELOG.md @@ -1,5 +1,29 @@ # @gradio/core +## 0.3.0 + +### Features + +- [#9786](https://github.com/gradio-app/gradio/pull/9786) [`f109497`](https://github.com/gradio-app/gradio/commit/f109497e8281b3429b58e3f6a293dd63ebcc08af) - Fix frontend errors on ApiDocs and RecordingSnippet. Thanks @whitphx! + +### Dependency updates + +- @gradio/code@0.10.7 +- @gradio/paramviewer@0.5.6 +- @gradio/video@0.11.7 +- @gradio/statustracker@0.9.4 +- @gradio/button@0.3.6 +- @gradio/atoms@0.11.0 +- @gradio/column@0.2.0 +- @gradio/file@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/checkbox@0.4.6 +- @gradio/wasm@0.15.0 +- @gradio/image@0.16.7 +- @gradio/gallery@0.13.7 +- @gradio/plot@0.9.1 +- @gradio/textbox@0.8.5 + ## 0.2.1 ### Dependency updates diff --git a/js/core/package.json b/js/core/package.json index 0e3a0e78c9a8d..b3e4127cb3ee5 100644 --- a/js/core/package.json +++ b/js/core/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/core", - "version": "0.2.1", + "version": "0.3.0", "type": "module", "devDependencies": { "@gradio/accordion": "workspace:^", diff --git a/js/dataframe/CHANGELOG.md b/js/dataframe/CHANGELOG.md index 0bb0eeee9e91d..6021f1cb2a46a 100644 --- a/js/dataframe/CHANGELOG.md +++ b/js/dataframe/CHANGELOG.md @@ -1,5 +1,18 @@ # @gradio/dataframe +## 0.12.2 + +### Fixes + +- [#9892](https://github.com/gradio-app/gradio/pull/9892) [`7d77024`](https://github.com/gradio-app/gradio/commit/7d77024cb8f9cfd39a6468de9534e58dcfa69f49) - Fix dataframe height increasing on scroll. Thanks @abidlabs! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/button@0.3.6 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 + ## 0.12.1 ### Features diff --git a/js/dataframe/package.json b/js/dataframe/package.json index 59170fb957cfe..2b327488d9265 100644 --- a/js/dataframe/package.json +++ b/js/dataframe/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dataframe", - "version": "0.12.1", + "version": "0.12.2", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dataset/CHANGELOG.md b/js/dataset/CHANGELOG.md index e049b47ed12e7..6c9ddcf0a7e70 100644 --- a/js/dataset/CHANGELOG.md +++ b/js/dataset/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/dataset +## 0.3.8 + +### Dependency updates + +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/textbox@0.8.5 + ## 0.3.7 ### Dependency updates diff --git a/js/dataset/package.json b/js/dataset/package.json index 9cd3ddd46861d..f34f9cf794ca0 100644 --- a/js/dataset/package.json +++ b/js/dataset/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dataset", - "version": "0.3.7", + "version": "0.3.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/datetime/CHANGELOG.md b/js/datetime/CHANGELOG.md index eaddc217e2342..707967f83f0c4 100644 --- a/js/datetime/CHANGELOG.md +++ b/js/datetime/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/datetime +## 0.2.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.2.5 ### Fixes diff --git a/js/datetime/package.json b/js/datetime/package.json index 8e71b9647bf97..2ee25a5a900dc 100644 --- a/js/datetime/package.json +++ b/js/datetime/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/datetime", - "version": "0.2.5", + "version": "0.2.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/downloadbutton/CHANGELOG.md b/js/downloadbutton/CHANGELOG.md index 2e7b10acf0907..026c9df638be3 100644 --- a/js/downloadbutton/CHANGELOG.md +++ b/js/downloadbutton/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/downloadbutton +## 0.2.6 + +### Dependency updates + +- @gradio/button@0.3.6 + ## 0.2.5 ### Dependency updates diff --git a/js/downloadbutton/package.json b/js/downloadbutton/package.json index 6d67073411814..c8ba3e72784f3 100644 --- a/js/downloadbutton/package.json +++ b/js/downloadbutton/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/downloadbutton", - "version": "0.2.5", + "version": "0.2.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dropdown/CHANGELOG.md b/js/dropdown/CHANGELOG.md index 06fbc1d6bb415..fd63587fa5bfe 100644 --- a/js/dropdown/CHANGELOG.md +++ b/js/dropdown/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/dropdown +## 0.9.4 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.9.3 ### Dependency updates diff --git a/js/dropdown/package.json b/js/dropdown/package.json index 5e9f0dfe88514..d2491df516fd1 100644 --- a/js/dropdown/package.json +++ b/js/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dropdown", - "version": "0.9.3", + "version": "0.9.4", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/fallback/CHANGELOG.md b/js/fallback/CHANGELOG.md index eaa9b88a1ccab..2b89d82e928ca 100644 --- a/js/fallback/CHANGELOG.md +++ b/js/fallback/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/fallback +## 0.4.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.4.5 ### Dependency updates diff --git a/js/fallback/package.json b/js/fallback/package.json index b690273924398..0fbcf5b8ccc67 100644 --- a/js/fallback/package.json +++ b/js/fallback/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/fallback", - "version": "0.4.5", + "version": "0.4.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/file/CHANGELOG.md b/js/file/CHANGELOG.md index e9d4766459b50..9c69dbe551c7e 100644 --- a/js/file/CHANGELOG.md +++ b/js/file/CHANGELOG.md @@ -1,5 +1,19 @@ # @gradio/file +## 0.11.0 + +### Features + +- [#9891](https://github.com/gradio-app/gradio/pull/9891) [`fc12496`](https://github.com/gradio-app/gradio/commit/fc124964a1b4922e54a4ca4755f0a536dfae1a21) - Allow uploading more files in gr.File. Thanks @hannahblair! +- [#9887](https://github.com/gradio-app/gradio/pull/9887) [`d407c00`](https://github.com/gradio-app/gradio/commit/d407c007153705a7f5446f4601c12f208ec32a5b) - Add `.download()` event to `gr.File`. Thanks @abidlabs! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.10.6 ### Dependency updates diff --git a/js/file/package.json b/js/file/package.json index 28cf13b564d8f..97eea1f89f4bb 100644 --- a/js/file/package.json +++ b/js/file/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/file", - "version": "0.10.6", + "version": "0.11.0", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/fileexplorer/CHANGELOG.md b/js/fileexplorer/CHANGELOG.md index 06f4a30802e94..7e6a7ef6a7a0e 100644 --- a/js/fileexplorer/CHANGELOG.md +++ b/js/fileexplorer/CHANGELOG.md @@ -1,5 +1,19 @@ # @gradio/fileexplorer +## 0.5.7 + +### Fixes + +- [#9835](https://github.com/gradio-app/gradio/pull/9835) [`4d90883`](https://github.com/gradio-app/gradio/commit/4d9088354df528c8edf981f3e756d8927d3e8805) - Allows selection of directories in File Explorer. Thanks @aliabid94! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/file@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/checkbox@0.4.6 + ## 0.5.6 ### Dependency updates diff --git a/js/fileexplorer/package.json b/js/fileexplorer/package.json index ff8b499126e9e..e7bcd55a2207a 100644 --- a/js/fileexplorer/package.json +++ b/js/fileexplorer/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/fileexplorer", - "version": "0.5.6", + "version": "0.5.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/form/CHANGELOG.md b/js/form/CHANGELOG.md index a2ca392a1fb42..be847b026d2ab 100644 --- a/js/form/CHANGELOG.md +++ b/js/form/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/form +## 0.2.5 + +### Dependency updates + +- @gradio/atoms@0.11.0 + ## 0.2.4 ### Dependency updates diff --git a/js/form/package.json b/js/form/package.json index ac2968323fa87..e33a87ed8e5fe 100644 --- a/js/form/package.json +++ b/js/form/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/form", - "version": "0.2.4", + "version": "0.2.5", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/gallery/CHANGELOG.md b/js/gallery/CHANGELOG.md index 25bf5ec989424..a50ea5fc4b3bc 100644 --- a/js/gallery/CHANGELOG.md +++ b/js/gallery/CHANGELOG.md @@ -1,5 +1,20 @@ # @gradio/gallery +## 0.13.7 + +### Fixes + +- [#9881](https://github.com/gradio-app/gradio/pull/9881) [`6866a54`](https://github.com/gradio-app/gradio/commit/6866a5433afe7e29ad73bac10ecbc3b44f5867f4) - Ensure gallery share button is positioned correctly. Thanks @hannahblair! + +### Dependency updates + +- @gradio/video@0.11.7 +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/file@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/image@0.16.7 + ## 0.13.6 ### Dependency updates diff --git a/js/gallery/package.json b/js/gallery/package.json index 075f0fab81183..abc8d6c9157b8 100644 --- a/js/gallery/package.json +++ b/js/gallery/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/gallery", - "version": "0.13.6", + "version": "0.13.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/highlightedtext/CHANGELOG.md b/js/highlightedtext/CHANGELOG.md index 78e2ff161dd98..a6c7ff8fa56be 100644 --- a/js/highlightedtext/CHANGELOG.md +++ b/js/highlightedtext/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/highlightedtext +## 0.8.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.8.5 ### Dependency updates diff --git a/js/highlightedtext/package.json b/js/highlightedtext/package.json index d35a496b5633e..cd9cf8fc1c21b 100644 --- a/js/highlightedtext/package.json +++ b/js/highlightedtext/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/highlightedtext", - "version": "0.8.5", + "version": "0.8.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/html/CHANGELOG.md b/js/html/CHANGELOG.md index 99dca6771a79e..6c5352fe91d58 100644 --- a/js/html/CHANGELOG.md +++ b/js/html/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/html +## 0.4.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.4.5 ### Dependency updates diff --git a/js/html/package.json b/js/html/package.json index bdb45b8e0633c..07c177ad6b655 100644 --- a/js/html/package.json +++ b/js/html/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/html", - "version": "0.4.5", + "version": "0.4.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/image/CHANGELOG.md b/js/image/CHANGELOG.md index 3a4df637eb0b7..2a1fb1ec9e927 100644 --- a/js/image/CHANGELOG.md +++ b/js/image/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/image +## 0.16.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.16.6 ### Dependency updates diff --git a/js/image/package.json b/js/image/package.json index 7b0fb93290d30..cbce27533dff6 100644 --- a/js/image/package.json +++ b/js/image/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/image", - "version": "0.16.6", + "version": "0.16.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/imageeditor/CHANGELOG.md b/js/imageeditor/CHANGELOG.md index afaf4465c3a27..850cf318f2b20 100644 --- a/js/imageeditor/CHANGELOG.md +++ b/js/imageeditor/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/imageeditor +## 0.11.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 +- @gradio/image@0.16.7 + ## 0.11.6 ### Dependency updates diff --git a/js/imageeditor/package.json b/js/imageeditor/package.json index 35e65db6ce984..0b324ff354771 100644 --- a/js/imageeditor/package.json +++ b/js/imageeditor/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/imageeditor", - "version": "0.11.6", + "version": "0.11.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/json/CHANGELOG.md b/js/json/CHANGELOG.md index 41f0cac80160c..301423531b7a8 100644 --- a/js/json/CHANGELOG.md +++ b/js/json/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/json +## 0.5.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.5.5 ### Dependency updates diff --git a/js/json/package.json b/js/json/package.json index 44d61638bed06..0cccb3c0c76d1 100644 --- a/js/json/package.json +++ b/js/json/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/json", - "version": "0.5.5", + "version": "0.5.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/label/CHANGELOG.md b/js/label/CHANGELOG.md index abca9b98dfe09..127b586201042 100644 --- a/js/label/CHANGELOG.md +++ b/js/label/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/label +## 0.4.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.4.5 ### Dependency updates diff --git a/js/label/package.json b/js/label/package.json index fae948e8acc02..09698e195b4b0 100644 --- a/js/label/package.json +++ b/js/label/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/label", - "version": "0.4.5", + "version": "0.4.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/lite/CHANGELOG.md b/js/lite/CHANGELOG.md index 32f998ab37afa..8bb82bc0f0431 100644 --- a/js/lite/CHANGELOG.md +++ b/js/lite/CHANGELOG.md @@ -1,5 +1,18 @@ # @gradio/lite +## 5.5.0 + +### Features + +- [#9424](https://github.com/gradio-app/gradio/pull/9424) [`a1582a6`](https://github.com/gradio-app/gradio/commit/a1582a6dca494618c734208cade87acfdac91004) - Lite worker refactoring. Thanks @whitphx! +- [#9726](https://github.com/gradio-app/gradio/pull/9726) [`b6725cf`](https://github.com/gradio-app/gradio/commit/b6725cf6c1fe9667dc10e1988976ed36d84d73d3) - Lite auto-load imported modules with `pyodide.loadPackagesFromImports`. Thanks @whitphx! + +### Dependency updates + +- @gradio/atoms@0.11.0 +- @gradio/wasm@0.15.0 +- @gradio/core@0.3.0 + ## 4.43.2 ### Dependency updates diff --git a/js/lite/package.json b/js/lite/package.json index 840758517e9ae..34c5ba858bb0e 100644 --- a/js/lite/package.json +++ b/js/lite/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/lite", - "version": "5.4.0", + "version": "5.5.0", "description": "Serverless Gradio", "type": "module", "main": "dist/lite.js", diff --git a/js/markdown/CHANGELOG.md b/js/markdown/CHANGELOG.md index a1361072e7d5d..b3f0f84b82f1e 100644 --- a/js/markdown/CHANGELOG.md +++ b/js/markdown/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/markdown +## 0.11.2 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.11.1 ### Dependency updates diff --git a/js/markdown/package.json b/js/markdown/package.json index 849db15855d9c..e433070625921 100644 --- a/js/markdown/package.json +++ b/js/markdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/markdown", - "version": "0.11.1", + "version": "0.11.2", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/model3D/CHANGELOG.md b/js/model3D/CHANGELOG.md index a08c040e70c99..827b28fbf0a19 100644 --- a/js/model3D/CHANGELOG.md +++ b/js/model3D/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/model3d +## 0.13.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.13.6 ### Dependency updates diff --git a/js/model3D/package.json b/js/model3D/package.json index d1c8d257a8aa9..d3b9d70622dad 100644 --- a/js/model3D/package.json +++ b/js/model3D/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/model3d", - "version": "0.13.6", + "version": "0.13.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/multimodaltextbox/CHANGELOG.md b/js/multimodaltextbox/CHANGELOG.md index 2591bff8091d2..4e8c46fc5743f 100644 --- a/js/multimodaltextbox/CHANGELOG.md +++ b/js/multimodaltextbox/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/multimodaltextbox +## 0.7.5 + +### Dependency updates + +- @gradio/video@0.11.7 +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/image@0.16.7 + ## 0.7.4 ### Fixes diff --git a/js/multimodaltextbox/package.json b/js/multimodaltextbox/package.json index 37d8c131ab2ea..0903482ce7dd1 100644 --- a/js/multimodaltextbox/package.json +++ b/js/multimodaltextbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/multimodaltextbox", - "version": "0.7.4", + "version": "0.7.5", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/nativeplot/CHANGELOG.md b/js/nativeplot/CHANGELOG.md index 411962833bc51..780debba3b093 100644 --- a/js/nativeplot/CHANGELOG.md +++ b/js/nativeplot/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/nativeplot +## 0.5.0 + +### Features + +- [#9800](https://github.com/gradio-app/gradio/pull/9800) [`d1cfe1e`](https://github.com/gradio-app/gradio/commit/d1cfe1e9defa06f927aec2671656fe77514dd0fa) - Allow plot tooltip to show extra columns. Thanks @aliabid94! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.4.5 ### Dependency updates diff --git a/js/nativeplot/package.json b/js/nativeplot/package.json index 207d37ce532cd..da380172d85d9 100644 --- a/js/nativeplot/package.json +++ b/js/nativeplot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/nativeplot", - "version": "0.4.5", + "version": "0.5.0", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/number/CHANGELOG.md b/js/number/CHANGELOG.md index 76e11cc7ad72a..8303131afc51d 100644 --- a/js/number/CHANGELOG.md +++ b/js/number/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/number +## 0.5.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.5.5 ### Dependency updates diff --git a/js/number/package.json b/js/number/package.json index dd1e6b82817ce..e198be5152078 100644 --- a/js/number/package.json +++ b/js/number/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/number", - "version": "0.5.5", + "version": "0.5.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/paramviewer/CHANGELOG.md b/js/paramviewer/CHANGELOG.md index fe6052bce82a9..df26da538edfb 100644 --- a/js/paramviewer/CHANGELOG.md +++ b/js/paramviewer/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/paramviewer +## 0.5.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.5.5 ### Dependency updates diff --git a/js/paramviewer/package.json b/js/paramviewer/package.json index a13ae6944906d..9ad4e161da2ad 100644 --- a/js/paramviewer/package.json +++ b/js/paramviewer/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/paramviewer", - "version": "0.5.5", + "version": "0.5.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/plot/CHANGELOG.md b/js/plot/CHANGELOG.md index b85abd8a11cba..9b4d8b1067935 100644 --- a/js/plot/CHANGELOG.md +++ b/js/plot/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/plot +## 0.9.1 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.9.0 ### Features diff --git a/js/plot/package.json b/js/plot/package.json index 8b87c7e30ee6c..3815e134a0465 100644 --- a/js/plot/package.json +++ b/js/plot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/plot", - "version": "0.9.0", + "version": "0.9.1", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/radio/CHANGELOG.md b/js/radio/CHANGELOG.md index 08cdf34f31e4a..4704b912841e5 100644 --- a/js/radio/CHANGELOG.md +++ b/js/radio/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/radio +## 0.6.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.6.5 ### Dependency updates diff --git a/js/radio/package.json b/js/radio/package.json index c2bccc49dd6d8..3942ed526c887 100644 --- a/js/radio/package.json +++ b/js/radio/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/radio", - "version": "0.6.5", + "version": "0.6.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/row/CHANGELOG.md b/js/row/CHANGELOG.md index 529eb36d6a0ad..0854d17508b3a 100644 --- a/js/row/CHANGELOG.md +++ b/js/row/CHANGELOG.md @@ -4,6 +4,12 @@ ### Dependency updates +- @gradio/statustracker@0.9.4 + +## 0.2.0 + +### Dependency updates + - @gradio/statustracker@0.9.3 ## 0.2.0 diff --git a/js/simpledropdown/CHANGELOG.md b/js/simpledropdown/CHANGELOG.md index 77c88e7002b9b..5a1bbb43d7c3a 100644 --- a/js/simpledropdown/CHANGELOG.md +++ b/js/simpledropdown/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/simpledropdown +## 0.3.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.3.5 ### Dependency updates diff --git a/js/simpledropdown/package.json b/js/simpledropdown/package.json index cef659c4bee82..ec89a6135ee48 100644 --- a/js/simpledropdown/package.json +++ b/js/simpledropdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpledropdown", - "version": "0.3.5", + "version": "0.3.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/simpleimage/CHANGELOG.md b/js/simpleimage/CHANGELOG.md index 80daab96ab1c8..793b5a1ef9671 100644 --- a/js/simpleimage/CHANGELOG.md +++ b/js/simpleimage/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/simpleimage +## 0.8.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 + ## 0.8.6 ### Dependency updates diff --git a/js/simpleimage/package.json b/js/simpleimage/package.json index b8b8fd4bad384..fcd50e6b4e939 100644 --- a/js/simpleimage/package.json +++ b/js/simpleimage/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpleimage", - "version": "0.8.6", + "version": "0.8.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/simpletextbox/CHANGELOG.md b/js/simpletextbox/CHANGELOG.md index c449727ed568e..892b82437d0d2 100644 --- a/js/simpletextbox/CHANGELOG.md +++ b/js/simpletextbox/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/simpletextbox +## 0.3.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.3.5 ### Fixes diff --git a/js/simpletextbox/package.json b/js/simpletextbox/package.json index e3ddc0f677e02..9fd4844793363 100644 --- a/js/simpletextbox/package.json +++ b/js/simpletextbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpletextbox", - "version": "0.3.5", + "version": "0.3.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/slider/CHANGELOG.md b/js/slider/CHANGELOG.md index 8f4cf119b2963..d00b0668eeb43 100644 --- a/js/slider/CHANGELOG.md +++ b/js/slider/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/slider +## 0.5.6 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.5.5 ### Dependency updates diff --git a/js/slider/package.json b/js/slider/package.json index 2dd67504e2d3e..31b6eb3d82bc7 100644 --- a/js/slider/package.json +++ b/js/slider/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/slider", - "version": "0.5.5", + "version": "0.5.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/spa/CHANGELOG.md b/js/spa/CHANGELOG.md index b5b14ad4dc7fa..c548dc656380a 100644 --- a/js/spa/CHANGELOG.md +++ b/js/spa/CHANGELOG.md @@ -4,6 +4,13 @@ ### Dependency updates +- @gradio/wasm@0.15.0 +- @gradio/core@0.3.0 + +## 0.2.0 + +### Dependency updates + - @gradio/client@1.7.1 - @gradio/core@0.2.1 diff --git a/js/statustracker/CHANGELOG.md b/js/statustracker/CHANGELOG.md index 636d3f033514c..ec767dfd1e787 100644 --- a/js/statustracker/CHANGELOG.md +++ b/js/statustracker/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/statustracker +## 0.9.4 + +### Dependency updates + +- @gradio/atoms@0.11.0 + ## 0.9.3 ### Dependency updates diff --git a/js/statustracker/package.json b/js/statustracker/package.json index 5ed6925817e11..693ed0185b070 100644 --- a/js/statustracker/package.json +++ b/js/statustracker/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/statustracker", - "version": "0.9.3", + "version": "0.9.4", "description": "Gradio UI packages", "type": "module", "main": "./index.ts", diff --git a/js/tabitem/CHANGELOG.md b/js/tabitem/CHANGELOG.md index 228786b35c499..8e624de251829 100644 --- a/js/tabitem/CHANGELOG.md +++ b/js/tabitem/CHANGELOG.md @@ -4,6 +4,12 @@ ### Dependency updates +- @gradio/column@0.2.0 + +## 0.3.3 + +### Dependency updates + - @gradio/tabs@0.3.3 - @gradio/column@0.2.0 diff --git a/js/textbox/CHANGELOG.md b/js/textbox/CHANGELOG.md index 83dab0d7d8fee..5f9c1eafc531d 100644 --- a/js/textbox/CHANGELOG.md +++ b/js/textbox/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/textbox +## 0.8.5 + +### Fixes + +- [#9859](https://github.com/gradio-app/gradio/pull/9859) [`c1cb5be`](https://github.com/gradio-app/gradio/commit/c1cb5be2d79fce5d25032366b5864700ba9d1114) - Fix: Resolve copy button visibility issue in Textbox component. Thanks @rahulsamant37! + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 + ## 0.8.4 ### Fixes diff --git a/js/textbox/package.json b/js/textbox/package.json index 261d3c1904639..ce5d37e417b19 100644 --- a/js/textbox/package.json +++ b/js/textbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/textbox", - "version": "0.8.4", + "version": "0.8.5", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/tootils/CHANGELOG.md b/js/tootils/CHANGELOG.md index 78bc05ce21250..347ad1fab7d4d 100644 --- a/js/tootils/CHANGELOG.md +++ b/js/tootils/CHANGELOG.md @@ -1,5 +1,11 @@ # @self/tootils +## 0.7.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 + ## 0.7.6 ### Dependency updates diff --git a/js/tootils/package.json b/js/tootils/package.json index 34cd2ef1a8e8a..2c500bbf93822 100644 --- a/js/tootils/package.json +++ b/js/tootils/package.json @@ -1,6 +1,6 @@ { "name": "@self/tootils", - "version": "0.7.6", + "version": "0.7.7", "description": "Internal test utilities", "type": "module", "main": "src/index.ts", diff --git a/js/upload/CHANGELOG.md b/js/upload/CHANGELOG.md index c34ea676f1477..5cd1bc868ec4b 100644 --- a/js/upload/CHANGELOG.md +++ b/js/upload/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/upload +## 0.14.0 + +### Features + +- [#9891](https://github.com/gradio-app/gradio/pull/9891) [`fc12496`](https://github.com/gradio-app/gradio/commit/fc124964a1b4922e54a4ca4755f0a536dfae1a21) - Allow uploading more files in gr.File. Thanks @hannahblair! + +### Dependency updates + +- @gradio/atoms@0.11.0 +- @gradio/wasm@0.15.0 + ## 0.13.5 ### Dependency updates diff --git a/js/upload/package.json b/js/upload/package.json index e36708e84f3d5..40c01a9cbeacc 100644 --- a/js/upload/package.json +++ b/js/upload/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/upload", - "version": "0.13.5", + "version": "0.14.0", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/uploadbutton/CHANGELOG.md b/js/uploadbutton/CHANGELOG.md index f10ea9bb75514..39c87e82a75f9 100644 --- a/js/uploadbutton/CHANGELOG.md +++ b/js/uploadbutton/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/uploadbutton +## 0.7.6 + +### Dependency updates + +- @gradio/button@0.3.6 +- @gradio/upload@0.14.0 + ## 0.7.5 ### Dependency updates diff --git a/js/uploadbutton/package.json b/js/uploadbutton/package.json index f73e9b8cd6d1e..b6920b7ab8aec 100644 --- a/js/uploadbutton/package.json +++ b/js/uploadbutton/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/uploadbutton", - "version": "0.7.5", + "version": "0.7.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/video/CHANGELOG.md b/js/video/CHANGELOG.md index cd8f3c64560e4..86327a0e27d1d 100644 --- a/js/video/CHANGELOG.md +++ b/js/video/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/video +## 0.11.7 + +### Dependency updates + +- @gradio/statustracker@0.9.4 +- @gradio/atoms@0.11.0 +- @gradio/upload@0.14.0 +- @gradio/wasm@0.15.0 +- @gradio/image@0.16.7 + ## 0.11.6 ### Dependency updates diff --git a/js/video/package.json b/js/video/package.json index 222aee8ce0d3b..b5592e6f726e2 100644 --- a/js/video/package.json +++ b/js/video/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/video", - "version": "0.11.6", + "version": "0.11.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/wasm/CHANGELOG.md b/js/wasm/CHANGELOG.md index 8f4c3ce9a25a4..4c7c6f37696de 100644 --- a/js/wasm/CHANGELOG.md +++ b/js/wasm/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/wasm +## 0.15.0 + +### Features + +- [#9424](https://github.com/gradio-app/gradio/pull/9424) [`a1582a6`](https://github.com/gradio-app/gradio/commit/a1582a6dca494618c734208cade87acfdac91004) - Lite worker refactoring. Thanks @whitphx! +- [#9726](https://github.com/gradio-app/gradio/pull/9726) [`b6725cf`](https://github.com/gradio-app/gradio/commit/b6725cf6c1fe9667dc10e1988976ed36d84d73d3) - Lite auto-load imported modules with `pyodide.loadPackagesFromImports`. Thanks @whitphx! + ## 0.14.2 ### Fixes diff --git a/js/wasm/package.json b/js/wasm/package.json index 2f04a42a36165..cb56ff0619adb 100644 --- a/js/wasm/package.json +++ b/js/wasm/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/wasm", - "version": "0.14.2", + "version": "0.15.0", "description": "Gradio Wasm package", "type": "module", "main": "./dist/src/index.js", From eafe22cd9404d536b03d3fa80003acea78599d49 Mon Sep 17 00:00:00 2001 From: Muhammad Yaseen Date: Wed, 6 Nov 2024 00:49:32 +0100 Subject: [PATCH 09/27] Clearer error message in CheckboxGroup's preprocess function (#9906) * Clearer error message in CheckboxGroup's preprocess function * add changeset * lint --------- Co-authored-by: gradio-pr-bot Co-authored-by: Abubakar Abid --- .changeset/breezy-ants-count.md | 5 +++++ gradio/components/checkboxgroup.py | 2 +- test/components/test_checkbox_group.py | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .changeset/breezy-ants-count.md diff --git a/.changeset/breezy-ants-count.md b/.changeset/breezy-ants-count.md new file mode 100644 index 0000000000000..234199ab05715 --- /dev/null +++ b/.changeset/breezy-ants-count.md @@ -0,0 +1,5 @@ +--- +"gradio": minor +--- + +feat:Clearer error message in CheckboxGroup's preprocess function diff --git a/gradio/components/checkboxgroup.py b/gradio/components/checkboxgroup.py index c86348becae2e..3aa4d706e2225 100644 --- a/gradio/components/checkboxgroup.py +++ b/gradio/components/checkboxgroup.py @@ -123,7 +123,7 @@ def preprocess( for value in payload: if value not in choice_values: raise Error( - f"Value: {value} is not in the list of choices: {choice_values}" + f"Value: {value!r} (type: {type(value)}) is not in the list of choices: {choice_values}" ) if self.type == "value": return payload diff --git a/test/components/test_checkbox_group.py b/test/components/test_checkbox_group.py index bfb96647d525d..11df783484649 100644 --- a/test/components/test_checkbox_group.py +++ b/test/components/test_checkbox_group.py @@ -20,6 +20,15 @@ def test_component_functions(self): with pytest.raises(gr.Error): checkboxes_input.preprocess(["a", "b", "c"]) + # Check that the error message clearly indicates the error source in cases where data + # representation could be ambiguous e.g. "1" (str) vs 1 (int) + checkboxes_input = gr.CheckboxGroup([1, 2, 3]) + # Since pytest.raises takes a regular expression in the `match` argument, we need to escape brackets + # that have special meaning in regular expressions + expected_error_message = r"Value: '1' \(type: \) is not in the list of choices: \[1, 2, 3\]" + with pytest.raises(gr.Error, match=expected_error_message): + checkboxes_input.preprocess(["1", "2", "3"]) + # When a Gradio app is loaded with gr.load, the tuples are converted to lists, # so we need to test that case as well checkboxgroup = gr.CheckboxGroup(["a", "b", ["c", "c full"]]) # type: ignore From f523c915d3732859ff4a8019a82cb597b5208ae2 Mon Sep 17 00:00:00 2001 From: Hannah Date: Wed, 6 Nov 2024 19:40:10 +0000 Subject: [PATCH 10/27] Ensure dropped files are validated in MultimediaTextbox (#9904) * add logic to validate dropped files * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/tough-ideas-wear.md | 6 ++++ js/multimodaltextbox/Index.svelte | 2 +- .../shared/MultimodalTextbox.svelte | 34 ++++++++++++++++++- 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .changeset/tough-ideas-wear.md diff --git a/.changeset/tough-ideas-wear.md b/.changeset/tough-ideas-wear.md new file mode 100644 index 0000000000000..c385fdba3f13e --- /dev/null +++ b/.changeset/tough-ideas-wear.md @@ -0,0 +1,6 @@ +--- +"@gradio/multimodaltextbox": patch +"gradio": patch +--- + +fix:Ensure dropped files are validated in MultimediaTextbox diff --git a/js/multimodaltextbox/Index.svelte b/js/multimodaltextbox/Index.svelte index 2a00705cc84e2..9afeed8143db1 100644 --- a/js/multimodaltextbox/Index.svelte +++ b/js/multimodaltextbox/Index.svelte @@ -63,7 +63,7 @@ {scale} {min_width} allow_overflow={false} - padding={container} + padding={false} border_mode={dragging ? "focus" : "base"} > {#if loading_status} diff --git a/js/multimodaltextbox/shared/MultimodalTextbox.svelte b/js/multimodaltextbox/shared/MultimodalTextbox.svelte index be7e59300c29b..4cf2e30ca35fd 100644 --- a/js/multimodaltextbox/shared/MultimodalTextbox.svelte +++ b/js/multimodaltextbox/shared/MultimodalTextbox.svelte @@ -229,7 +229,32 @@ event.preventDefault(); dragging = false; if (event.dataTransfer && event.dataTransfer.files) { - upload_component.load_files(Array.from(event.dataTransfer.files)); + const files = Array.from(event.dataTransfer.files); + + if (file_types) { + const valid_files = files.filter((file) => { + return file_types.some((type) => { + if (type.startsWith(".")) { + return file.name.toLowerCase().endsWith(type.toLowerCase()); + } + return file.type.match(new RegExp(type.replace("*", ".*"))); + }); + }); + + const invalid_files = files.length - valid_files.length; + if (invalid_files > 0) { + dispatch( + "error", + `${invalid_files} file(s) were rejected. Accepted formats: ${file_types.join(", ")}` + ); + } + + if (valid_files.length > 0) { + upload_component.load_files(valid_files); + } + } else { + upload_component.load_files(files); + } } } @@ -370,6 +395,13 @@ .full-container { width: 100%; position: relative; + padding: var(--block-padding); + border: 1px solid transparent; + } + + .full-container.dragging { + border: 1px solid var(--color-accent); + border-radius: calc(var(--radius-sm) - 1px); } .full-container.dragging::after { From d81f430fd50546001b76c0ae5fded32c6d3093f7 Mon Sep 17 00:00:00 2001 From: TakaSoap <34995160+TakaSoap@users.noreply.github.com> Date: Fri, 8 Nov 2024 02:52:20 +0800 Subject: [PATCH 11/27] fix: Fix filename stripping to preserve extensions (#9913) * fix: Fix filename stripping to preserve extensions * fix tests * add changeset --------- Co-authored-by: Abubakar Abid Co-authored-by: gradio-pr-bot --- .changeset/little-pots-greet.md | 6 ++++++ client/python/gradio_client/utils.py | 15 +++++++++++---- client/python/test/test_utils.py | 8 +++++--- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .changeset/little-pots-greet.md diff --git a/.changeset/little-pots-greet.md b/.changeset/little-pots-greet.md new file mode 100644 index 0000000000000..cabccaf298645 --- /dev/null +++ b/.changeset/little-pots-greet.md @@ -0,0 +1,6 @@ +--- +"gradio": patch +"gradio_client": patch +--- + +fix:fix: Fix filename stripping to preserve extensions diff --git a/client/python/gradio_client/utils.py b/client/python/gradio_client/utils.py index 10fe5ffe48bd3..d9f6ed5e90f55 100644 --- a/client/python/gradio_client/utils.py +++ b/client/python/gradio_client/utils.py @@ -750,14 +750,21 @@ def decode_base64_to_binary(encoding: str) -> tuple[bytes, str | None]: def strip_invalid_filename_characters(filename: str, max_bytes: int = 200) -> str: - """Strips invalid characters from a filename and ensures that the file_length is less than `max_bytes` bytes.""" - filename = "".join([char for char in filename if char.isalnum() or char in "._- "]) + """ + Strips invalid characters from a filename and ensures it does not exceed the maximum byte length + Invalid characters are any characters that are not alphanumeric or one of the following: . _ - + The filename may include an extension (in which case it is preserved exactly as is), or could be just a name without an extension. + """ + name, ext = os.path.splitext(filename) + name = "".join([char for char in name if char.isalnum() or char in "._- "]) + filename = name + ext filename_len = len(filename.encode()) if filename_len > max_bytes: while filename_len > max_bytes: - if len(filename) == 0: + if len(name) == 0: break - filename = filename[:-1] + name = name[:-1] + filename = name + ext filename_len = len(filename.encode()) return filename diff --git a/client/python/test/test_utils.py b/client/python/test/test_utils.py index 68272611cfc1a..ee89e16bd754e 100644 --- a/client/python/test/test_utils.py +++ b/client/python/test/test_utils.py @@ -91,13 +91,15 @@ def test_is_valid_file_type(path_or_url, file_types, expected_result): [ ("abc", "abc"), ("$$AAabc&3", "AAabc3"), - ("$$AAabc&3", "AAabc3"), - ("$$AAa..b-c&3_", "AAa..b-c3_"), - ("$$AAa..b-c&3_", "AAa..b-c3_"), + ("$$AAa&..b-c3_", "AAa..b-c3_"), ( "ゆかりです。私、こんなかわいい服は初めて着ました…。なんだかうれしくって、楽しいです。歌いたくなる気分って、初めてです。これがアイドルってことなのかもしれませんね", "ゆかりです私こんなかわいい服は初めて着ましたなんだかうれしくって楽しいです歌いたくなる気分って初めてですこれがアイドルってことなの", ), + ( + "Bringing-computational-thinking-into-classrooms-a-systematic-review-on-supporting-teachers-in-integrating-computational-thinking-into-K12-classrooms_2024_Springer-Science-and-Business-Media-Deutschland-GmbH.pdf", + "Bringing-computational-thinking-into-classrooms-a-systematic-review-on-supporting-teachers-in-integrating-computational-thinking-into-K12-classrooms_2024_Springer-Science-and-Business-Media-Deutsc.pdf", + ), ], ) def test_strip_invalid_filename_characters(orig_filename, new_filename): From c0cf80bddd99ad0f836e618cc3d2b13e73cb5611 Mon Sep 17 00:00:00 2001 From: Hannah Date: Thu, 7 Nov 2024 23:12:41 +0000 Subject: [PATCH 12/27] Allow datetime value to be null (#9897) * change valid date check * add changeset * move clear event and dispatch clear * remove clear event --------- Co-authored-by: gradio-pr-bot --- .changeset/empty-humans-invite.md | 6 ++++++ js/datetime/Index.svelte | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/empty-humans-invite.md diff --git a/.changeset/empty-humans-invite.md b/.changeset/empty-humans-invite.md new file mode 100644 index 0000000000000..9e2120d839f1a --- /dev/null +++ b/.changeset/empty-humans-invite.md @@ -0,0 +1,6 @@ +--- +"@gradio/datetime": patch +"gradio": patch +--- + +fix:Allow datetime value to be null diff --git a/js/datetime/Index.svelte b/js/datetime/Index.svelte index 040ab49e27a8f..d4630456c06bc 100644 --- a/js/datetime/Index.svelte +++ b/js/datetime/Index.svelte @@ -5,7 +5,7 @@ diff --git a/js/browserstate/crypto.ts b/js/browserstate/crypto.ts new file mode 100644 index 0000000000000..108c8461bd3d8 --- /dev/null +++ b/js/browserstate/crypto.ts @@ -0,0 +1,28 @@ +import CryptoJS from "crypto-js"; + +export function encrypt(data: string, key: string): string { + const hashedKey = CryptoJS.SHA256(key).toString(); + const iv = CryptoJS.lib.WordArray.random(16); + const encrypted = CryptoJS.AES.encrypt(data, hashedKey, { + iv: iv, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }); + + const ivString = CryptoJS.enc.Base64.stringify(iv); + const cipherString = encrypted.toString(); + return ivString + ":" + cipherString; +} + +export function decrypt(encryptedData: string, key: string): string { + const hashedKey = CryptoJS.SHA256(key).toString(); + const [ivString, cipherString] = encryptedData.split(":"); + const iv = CryptoJS.enc.Base64.parse(ivString); + const decrypted = CryptoJS.AES.decrypt(cipherString, hashedKey, { + iv: iv, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }); + + return decrypted.toString(CryptoJS.enc.Utf8); +} diff --git a/js/browserstate/package.json b/js/browserstate/package.json new file mode 100644 index 0000000000000..80ccbc648713d --- /dev/null +++ b/js/browserstate/package.json @@ -0,0 +1,33 @@ +{ + "name": "@gradio/browserstate", + "version": "0.1.2", + "description": "Gradio UI packages", + "type": "module", + "author": "", + "license": "ISC", + "private": false, + "main_changeset": true, + "exports": { + ".": { + "gradio": "./Index.svelte", + "svelte": "./dist/Index.svelte", + "types": "./dist/Index.svelte.d.ts" + }, + "./package.json": "./package.json" + }, + "dependencies": { + "dequal": "^2.0.2", + "crypto-js": "^4.1.1" + }, + "peerDependencies": { + "svelte": "^4.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/gradio-app/gradio.git", + "directory": "js/state" + }, + "devDependencies": { + "@types/crypto-js": "^4.1.1" + } +} diff --git a/js/component-test/src/routes/[...all]/+page.ts b/js/component-test/src/routes/[...all]/+page.ts index f17a6034be181..19484b62df14f 100644 --- a/js/component-test/src/routes/[...all]/+page.ts +++ b/js/component-test/src/routes/[...all]/+page.ts @@ -24,6 +24,7 @@ const comps = { imageeditor: () => import("@gradio/imageeditor"), json: () => import("@gradio/json"), label: () => import("@gradio/label"), + browserstate: () => import("@gradio/browserstate"), markdown: () => import("@gradio/markdown"), model3d: () => import("@gradio/model3d"), multimodaltextbox: () => import("@gradio/multimodaltextbox"), diff --git a/js/core/package.json b/js/core/package.json index b3e4127cb3ee5..3e3e4639042bf 100644 --- a/js/core/package.json +++ b/js/core/package.json @@ -34,6 +34,7 @@ "@gradio/imageeditor": "workspace:^", "@gradio/json": "workspace:^", "@gradio/label": "workspace:^", + "@gradio/browserstate": "workspace:^", "@gradio/markdown": "workspace:^", "@gradio/model3d": "workspace:^", "@gradio/multimodaltextbox": "workspace:^", diff --git a/package.json b/package.json index ab2e7b73327f5..517eaffa51a9d 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,7 @@ "@gradio/imageeditor": "workspace:^", "@gradio/json": "workspace:^", "@gradio/label": "workspace:^", + "@gradio/browserstate": "workspace:^", "@gradio/markdown": "workspace:^", "@gradio/model3d": "workspace:^", "@gradio/multimodaltextbox": "workspace:^", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d40f1a14819f8..da308be259b85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -209,6 +209,9 @@ importers: '@gradio/box': specifier: workspace:^ version: link:js/box + '@gradio/browserstate': + specifier: workspace:^ + version: link:js/browserstate '@gradio/button': specifier: workspace:^ version: link:js/button @@ -705,6 +708,22 @@ importers: specifier: ^4.0.0 version: 4.2.15 + js/browserstate: + dependencies: + crypto-js: + specifier: ^4.1.1 + version: 4.2.0 + dequal: + specifier: ^2.0.2 + version: 2.0.3 + svelte: + specifier: ^4.0.0 + version: 4.2.15 + devDependencies: + '@types/crypto-js': + specifier: ^4.1.1 + version: 4.2.2 + js/build: dependencies: '@gradio/theme': @@ -1010,6 +1029,9 @@ importers: '@gradio/box': specifier: workspace:^ version: link:../box + '@gradio/browserstate': + specifier: workspace:^ + version: link:../browserstate '@gradio/button': specifier: workspace:^ version: link:../button @@ -4385,6 +4407,9 @@ packages: '@types/cookie@0.6.0': resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} + '@types/crypto-js@4.2.2': + resolution: {integrity: sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==} + '@types/css-font-loading-module@0.0.7': resolution: {integrity: sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q==} @@ -5211,6 +5236,9 @@ packages: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} + crypto-js@4.2.0: + resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} + css-declaration-sorter@7.2.0: resolution: {integrity: sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==} engines: {node: ^14 || ^16 || >=18} @@ -10110,13 +10138,13 @@ snapshots: '@jridgewell/gen-mapping@0.3.3': dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/resolve-uri@3.1.2': {} @@ -10132,12 +10160,12 @@ snapshots: '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@lezer/common@1.0.2': {} @@ -11194,6 +11222,8 @@ snapshots: '@types/cookie@0.6.0': {} + '@types/crypto-js@4.2.2': {} + '@types/css-font-loading-module@0.0.7': {} '@types/d3-dsv@3.0.0': {} @@ -12083,6 +12113,8 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + crypto-js@4.2.0: {} + css-declaration-sorter@7.2.0(postcss@8.4.38): dependencies: postcss: 8.4.38 @@ -14037,7 +14069,7 @@ snapshots: magic-string@0.27.0: dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 magic-string@0.30.10: dependencies: diff --git a/test/test_gradio_component_cli.py b/test/test_gradio_component_cli.py index 7a6e02b996a6d..7406058bcaa1d 100644 --- a/test/test_gradio_component_cli.py +++ b/test/test_gradio_component_cli.py @@ -15,7 +15,7 @@ c.__name__ for c in core_gradio_components() if not getattr(c, "is_template", False) - and c.__name__ not in ["Tab", "Form", "FormComponent"] + and c.__name__ not in ["Tab", "Form", "FormComponent", "BrowserState"] ] From cfb62bfdb52d88295f27287f788fca977e37ae6d Mon Sep 17 00:00:00 2001 From: Hannah Date: Fri, 15 Nov 2024 21:08:38 +0000 Subject: [PATCH 24/27] Allow dataframe column content to wrap (#9949) * camend header-content css wrap * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/eighty-turtles-accept.md | 6 ++++++ js/dataframe/shared/Table.svelte | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changeset/eighty-turtles-accept.md diff --git a/.changeset/eighty-turtles-accept.md b/.changeset/eighty-turtles-accept.md new file mode 100644 index 0000000000000..a188707a51ee0 --- /dev/null +++ b/.changeset/eighty-turtles-accept.md @@ -0,0 +1,6 @@ +--- +"@gradio/dataframe": patch +"gradio": patch +--- + +fix:Allow dataframe column content to wrap diff --git a/js/dataframe/shared/Table.svelte b/js/dataframe/shared/Table.svelte index 91c4f6eaad527..4d91634fd6d35 100644 --- a/js/dataframe/shared/Table.svelte +++ b/js/dataframe/shared/Table.svelte @@ -1241,8 +1241,8 @@ } th .header-content { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + white-space: normal; + overflow-wrap: break-word; + word-break: break-word; } From da6f1915547b03601d1808b28e57cca62308df71 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Fri, 15 Nov 2024 15:46:59 -0800 Subject: [PATCH 25/27] Remember token locally with `gr.load()` (#9966) * localstate * add changeset * changes * changes * changes * add changeset * changes * add changeset * format * notebook * some changes * add changeset * format * fix * changes * fix js lint and ts * add changeset * fix pytest * component demo * rename * rename * notebooks * changes * add changeset * revert * changes * revert * revert * revert * changes * changes * format * fix * notebook * docstring * guide * types * demo * push * cleanup * demo * add changeset * notebook * add changeset * clean * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/vast-hotels-chew.md | 5 ++++ demo/load_model_with_token/run.ipynb | 1 + demo/load_model_with_token/run.py | 7 ++++++ gradio/external.py | 37 +++++++++++++++++++++++++--- 4 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 .changeset/vast-hotels-chew.md create mode 100644 demo/load_model_with_token/run.ipynb create mode 100644 demo/load_model_with_token/run.py diff --git a/.changeset/vast-hotels-chew.md b/.changeset/vast-hotels-chew.md new file mode 100644 index 0000000000000..6b80fae2a9dce --- /dev/null +++ b/.changeset/vast-hotels-chew.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +feat:Remember token locally with `gr.load()` diff --git a/demo/load_model_with_token/run.ipynb b/demo/load_model_with_token/run.ipynb new file mode 100644 index 0000000000000..7d8b7d257169d --- /dev/null +++ b/demo/load_model_with_token/run.ipynb @@ -0,0 +1 @@ +{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: load_model_with_token"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "\n", "# This demo requires a Hugging Face PRO token.\n", "demo = gr.load(\"meta-llama/Meta-Llama-3-8B-Instruct\", src=\"models\", accept_token=True)\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()\n"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5} \ No newline at end of file diff --git a/demo/load_model_with_token/run.py b/demo/load_model_with_token/run.py new file mode 100644 index 0000000000000..9d13b5770a9f7 --- /dev/null +++ b/demo/load_model_with_token/run.py @@ -0,0 +1,7 @@ +import gradio as gr + +# This demo requires a Hugging Face PRO token. +demo = gr.load("meta-llama/Meta-Llama-3-8B-Instruct", src="models", accept_token=True) + +if __name__ == "__main__": + demo.launch() diff --git a/gradio/external.py b/gradio/external.py index 1cdb0dc601c6a..d4a73a41f0dfd 100644 --- a/gradio/external.py +++ b/gradio/external.py @@ -89,11 +89,40 @@ def load( import gradio as gr with gr.Blocks(fill_height=True) as demo: - textbox = gr.Textbox( - type="password", - label="Token", - info="Enter your token and press enter.", + with gr.Accordion("Enter your token and press enter") as accordion: + textbox = gr.Textbox( + type="password", + show_label=False, + container=False, + ) + remember_token = gr.Checkbox( + label="Remember me on this device", value=False, container=False + ) + browser_state = gr.BrowserState() + + @gr.on([textbox.submit], outputs=accordion) + def hide_accordion(): + return gr.Accordion("Token settings", open=False) + + @gr.on( + [textbox.submit, remember_token.change], + inputs=[textbox, remember_token], + outputs=[browser_state, remember_token], ) + def save_token(token_value, remember_token_value): + if remember_token_value and token_value: + return token_value, gr.Checkbox( + label="Remember me on this device (saved!)", value=True + ) + else: + return "", gr.Checkbox(label="Remember me on this device") + + @gr.on(demo.load, inputs=[browser_state], outputs=[textbox, remember_token]) + def load_token(token_value): + if token_value: + return token_value, True + else: + return "", False @gr.render(inputs=[textbox], triggers=[textbox.submit]) def create(token_value): From 08f4b8b000702456e04fac70961a4fbe0058f11c Mon Sep 17 00:00:00 2001 From: Hannah Date: Fri, 15 Nov 2024 23:50:32 +0000 Subject: [PATCH 26/27] Add `allow_file_downloads` param to allow downloading image/video/audio media in chatbot (#9905) * add allow_file_downloads param * add download btn for markdown images * add changeset * tweak * fix test * remove param * revert param removal * fix show logic * rename show_download_button to allow_file_downloads * change default to True --------- Co-authored-by: gradio-pr-bot Co-authored-by: Abubakar Abid --- .changeset/huge-windows-mate.md | 6 +++ gradio/components/chatbot.py | 3 ++ js/chatbot/Chatbot.stories.svelte | 20 ++-------- js/chatbot/Index.svelte | 2 + js/chatbot/shared/ButtonPanel.svelte | 11 +----- js/chatbot/shared/ChatBot.svelte | 19 +++++++++- js/chatbot/shared/Component.svelte | 7 ++-- js/chatbot/shared/Message.svelte | 57 ++++++++++++---------------- test/components/test_chatbot.py | 1 + 9 files changed, 63 insertions(+), 63 deletions(-) create mode 100644 .changeset/huge-windows-mate.md diff --git a/.changeset/huge-windows-mate.md b/.changeset/huge-windows-mate.md new file mode 100644 index 0000000000000..2d98744c9c191 --- /dev/null +++ b/.changeset/huge-windows-mate.md @@ -0,0 +1,6 @@ +--- +"@gradio/chatbot": patch +"gradio": patch +--- + +fix:Add `allow_file_downloads` param to allow downloading image/video/audio media in chatbot diff --git a/gradio/components/chatbot.py b/gradio/components/chatbot.py index 2733a9393298a..43e4a54c83a9f 100644 --- a/gradio/components/chatbot.py +++ b/gradio/components/chatbot.py @@ -184,6 +184,7 @@ def __init__( placeholder: str | None = None, examples: list[ExampleMessage] | None = None, show_copy_all_button=False, + allow_file_downloads=True, ): """ Parameters: @@ -218,6 +219,7 @@ def __init__( placeholder: a placeholder message to display in the chatbot when it is empty. Centered vertically and horizontally in the Chatbot. Supports Markdown and HTML. If None, no placeholder is displayed. examples: A list of example messages to display in the chatbot before any user/assistant messages are shown. Each example should be a dictionary with an optional "text" key representing the message that should be populated in the Chatbot when clicked, an optional "files" key, whose value should be a list of files to populate in the Chatbot, an optional "icon" key, whose value should be a filepath or URL to an image to display in the example box, and an optional "display_text" key, whose value should be the text to display in the example box. If "display_text" is not provided, the value of "text" will be displayed. show_copy_all_button: If True, will show a copy all button that copies all chatbot messages to the clipboard. + allow_file_downloads: If True, will show a download button for chatbot messages that contain media. Defaults to True. """ if type is None: warnings.warn( @@ -259,6 +261,7 @@ def __init__( self.line_breaks = line_breaks self.layout = layout self.show_copy_all_button = show_copy_all_button + self.allow_file_downloads = allow_file_downloads super().__init__( label=label, every=every, diff --git a/js/chatbot/Chatbot.stories.svelte b/js/chatbot/Chatbot.stories.svelte index 01828fa37724b..df7b6e90b5cf5 100644 --- a/js/chatbot/Chatbot.stories.svelte +++ b/js/chatbot/Chatbot.stories.svelte @@ -58,7 +58,7 @@ - - - - diff --git a/js/chatbot/Index.svelte b/js/chatbot/Index.svelte index c9373fb589a57..1f56d46549cdf 100644 --- a/js/chatbot/Index.svelte +++ b/js/chatbot/Index.svelte @@ -79,6 +79,7 @@ export let placeholder: string | null = null; export let examples: ExampleMessage[] | null = null; export let theme_mode: "system" | "light" | "dark"; + export let allow_file_downloads = true; diff --git a/js/chatbot/shared/ButtonPanel.svelte b/js/chatbot/shared/ButtonPanel.svelte index d6077ad83e7aa..9e029e2cfd580 100644 --- a/js/chatbot/shared/ButtonPanel.svelte +++ b/js/chatbot/shared/ButtonPanel.svelte @@ -13,7 +13,6 @@ export let show_retry: boolean; export let show_undo: boolean; export let show_copy_button: boolean; - export let show: boolean; export let message: NormalisedMessage | NormalisedMessage[]; export let position: "right" | "left"; export let avatar: FileData | null; @@ -48,7 +47,7 @@ message.content.value?.url; -{#if show} +{#if show_copy || show_retry || show_undo || likeable}
    {/if} - {#if show_download && !Array.isArray(message) && is_component_message(message)} - - - - {/if} {#if show_retry} > = {}; @@ -292,6 +300,14 @@ on:click={() => (is_image_preview_open = false)} label={"Clear"} /> + {#if allow_file_downloads} + + + + {/if}
    {/if} @@ -326,6 +342,7 @@ {show_copy_button} handle_action={(selected) => handle_like(i, messages[0], selected)} scroll={is_browser ? scroll : () => {}} + {allow_file_downloads} /> {/each} {#if pending_message} diff --git a/js/chatbot/shared/Component.svelte b/js/chatbot/shared/Component.svelte index 31d248fddc4b2..02b4e4f095524 100644 --- a/js/chatbot/shared/Component.svelte +++ b/js/chatbot/shared/Component.svelte @@ -8,6 +8,7 @@ export let i18n; export let upload; export let _fetch; + export let allow_file_downloads: boolean; {#if type === "gallery"} @@ -45,7 +46,7 @@ label="" waveform_settings={{}} waveform_options={{}} - show_download_button={false} + show_download_button={allow_file_downloads} on:load /> {:else if type === "video"} @@ -57,7 +58,7 @@ show_share_button={true} {i18n} {upload} - show_download_button={false} + show_download_button={allow_file_downloads} on:load > @@ -68,7 +69,7 @@ {value} show_label={false} label="chatbot-image" - show_download_button={false} + show_download_button={allow_file_downloads} on:load {i18n} /> diff --git a/js/chatbot/shared/Message.svelte b/js/chatbot/shared/Message.svelte index 8717a773468dc..d52be16e17bc5 100644 --- a/js/chatbot/shared/Message.svelte +++ b/js/chatbot/shared/Message.svelte @@ -44,6 +44,7 @@ export let msg_format: "tuples" | "messages"; export let handle_action: (selected: string | null) => void; export let scroll: () => void; + export let allow_file_downloads: boolean; function handle_select(i: number, message: NormalisedMessage): void { dispatch("select", { @@ -71,7 +72,6 @@ } type ButtonPanelProps = { - show: boolean; handle_action: (selected: string | null) => void; likeable: boolean; show_retry: boolean; @@ -86,7 +86,6 @@ let button_panel_props: ButtonPanelProps; $: button_panel_props = { - show: show_like || show_retry || show_undo || show_copy_button, handle_action, likeable: show_like, show_retry, @@ -147,11 +146,23 @@ aria-label={role + "'s message: " + get_message_label_data(message)} > {#if message.type === "text"} - {#if message.metadata.title} - +
    + {#if message.metadata.title} + + + + {:else} - - {:else} - - {/if} + {/if} +
    {:else if message.type === "component" && message.content.component in _components} scroll()} + {allow_file_downloads} /> {:else if message.type === "component" && message.content.component === "file"} Date: Fri, 15 Nov 2024 16:16:39 -0800 Subject: [PATCH 27/27] chore: update versions (#9908) Co-authored-by: github-actions[bot] --- .changeset/breezy-ants-count.md | 5 ----- .changeset/eighty-turtles-accept.md | 6 ------ .changeset/empty-humans-invite.md | 6 ------ .changeset/hot-ghosts-crash.md | 5 ----- .changeset/huge-windows-mate.md | 6 ------ .changeset/little-pots-greet.md | 6 ------ .changeset/nice-rice-smash.md | 7 ------ .changeset/smart-houses-deny.md | 6 ------ .changeset/spicy-cameras-pay.md | 5 ----- .changeset/ten-parks-rule.md | 5 ----- .changeset/thirty-walls-bake.md | 7 ------ .changeset/tough-ideas-wear.md | 6 ------ .changeset/tricky-glasses-share.md | 12 ----------- .changeset/vast-hotels-chew.md | 5 ----- CHANGELOG.md | 22 +++++++++++++++++++ client/js/CHANGELOG.md | 7 ++++++ client/js/package.json | 2 +- client/python/CHANGELOG.md | 6 ++++++ client/python/gradio_client/CHANGELOG.md | 6 ++++++ client/python/gradio_client/package.json | 2 +- gradio/CHANGELOG.md | 22 +++++++++++++++++++ gradio/package.json | 2 +- js/_spaces-test/CHANGELOG.md | 6 ++++++ js/_website/CHANGELOG.md | 9 ++++++++ js/_website/package.json | 2 +- js/accordion/CHANGELOG.md | 9 ++++++++ js/accordion/package.json | 2 +- js/annotatedimage/CHANGELOG.md | 10 +++++++++ js/annotatedimage/package.json | 2 +- js/app/CHANGELOG.md | 11 ++++++++++ js/app/package.json | 2 +- js/atoms/CHANGELOG.md | 6 ++++++ js/atoms/package.json | 2 +- js/audio/CHANGELOG.md | 11 ++++++++++ js/audio/package.json | 2 +- js/box/CHANGELOG.md | 6 ++++++ js/box/package.json | 2 +- js/browserstate/CHANGELOG.md | 7 ++++++ js/browserstate/package.json | 2 +- js/button/CHANGELOG.md | 8 +++++++ js/button/package.json | 2 +- js/chatbot/CHANGELOG.md | 18 ++++++++++++++++ js/chatbot/package.json | 2 +- js/checkbox/CHANGELOG.md | 8 +++++++ js/checkbox/package.json | 2 +- js/checkboxgroup/CHANGELOG.md | 12 +++++++++++ js/checkboxgroup/package.json | 2 +- js/code/CHANGELOG.md | 9 ++++++++ js/code/package.json | 2 +- js/colorpicker/CHANGELOG.md | 8 +++++++ js/colorpicker/package.json | 2 +- js/column/CHANGELOG.md | 7 ++++++ js/component-test/CHANGELOG.md | 10 +++++++++ js/component-test/package.json | 2 +- js/core/CHANGELOG.md | 27 ++++++++++++++++++++++++ js/core/package.json | 2 +- js/dataframe/CHANGELOG.md | 15 +++++++++++++ js/dataframe/package.json | 2 +- js/dataset/CHANGELOG.md | 10 +++++++++ js/dataset/package.json | 2 +- js/datetime/CHANGELOG.md | 12 +++++++++++ js/datetime/package.json | 2 +- js/downloadbutton/CHANGELOG.md | 8 +++++++ js/downloadbutton/package.json | 2 +- js/dropdown/CHANGELOG.md | 8 +++++++ js/dropdown/package.json | 2 +- js/fallback/CHANGELOG.md | 8 +++++++ js/fallback/package.json | 2 +- js/file/CHANGELOG.md | 14 ++++++++++++ js/file/package.json | 2 +- js/fileexplorer/CHANGELOG.md | 12 +++++++++++ js/fileexplorer/package.json | 2 +- js/form/CHANGELOG.md | 7 ++++++ js/form/package.json | 2 +- js/gallery/CHANGELOG.md | 13 ++++++++++++ js/gallery/package.json | 2 +- js/highlightedtext/CHANGELOG.md | 8 +++++++ js/highlightedtext/package.json | 2 +- js/html/CHANGELOG.md | 8 +++++++ js/html/package.json | 2 +- js/image/CHANGELOG.md | 10 +++++++++ js/image/package.json | 2 +- js/imageeditor/CHANGELOG.md | 11 ++++++++++ js/imageeditor/package.json | 2 +- js/json/CHANGELOG.md | 8 +++++++ js/json/package.json | 2 +- js/label/CHANGELOG.md | 8 +++++++ js/label/package.json | 2 +- js/lite/CHANGELOG.md | 7 ++++++ js/lite/package.json | 2 +- js/markdown/CHANGELOG.md | 8 +++++++ js/markdown/package.json | 2 +- js/model3D/CHANGELOG.md | 10 +++++++++ js/model3D/package.json | 2 +- js/multimodaltextbox/CHANGELOG.md | 17 +++++++++++++++ js/multimodaltextbox/package.json | 2 +- js/nativeplot/CHANGELOG.md | 8 +++++++ js/nativeplot/package.json | 2 +- js/number/CHANGELOG.md | 8 +++++++ js/number/package.json | 2 +- js/paramviewer/CHANGELOG.md | 8 +++++++ js/paramviewer/package.json | 2 +- js/plot/CHANGELOG.md | 8 +++++++ js/plot/package.json | 2 +- js/radio/CHANGELOG.md | 12 +++++++++++ js/radio/package.json | 2 +- js/row/CHANGELOG.md | 7 ++++++ js/simpledropdown/CHANGELOG.md | 8 +++++++ js/simpledropdown/package.json | 2 +- js/simpleimage/CHANGELOG.md | 10 +++++++++ js/simpleimage/package.json | 2 +- js/simpletextbox/CHANGELOG.md | 8 +++++++ js/simpletextbox/package.json | 2 +- js/slider/CHANGELOG.md | 8 +++++++ js/slider/package.json | 2 +- js/spa/CHANGELOG.md | 11 ++++++++++ js/spa/package.json | 2 +- js/statustracker/CHANGELOG.md | 7 ++++++ js/statustracker/package.json | 2 +- js/tabitem/CHANGELOG.md | 8 +++++++ js/tabitem/package.json | 2 +- js/tabs/CHANGELOG.md | 6 ++++++ js/tabs/package.json | 2 +- js/textbox/CHANGELOG.md | 8 +++++++ js/textbox/package.json | 2 +- js/timer/CHANGELOG.md | 6 ++++++ js/timer/package.json | 2 +- js/tootils/CHANGELOG.md | 7 ++++++ js/tootils/package.json | 2 +- js/upload/CHANGELOG.md | 8 +++++++ js/upload/package.json | 2 +- js/uploadbutton/CHANGELOG.md | 9 ++++++++ js/uploadbutton/package.json | 2 +- js/utils/CHANGELOG.md | 6 ++++++ js/utils/package.json | 2 +- js/video/CHANGELOG.md | 11 ++++++++++ js/video/package.json | 2 +- requirements.txt | 2 +- 138 files changed, 679 insertions(+), 147 deletions(-) delete mode 100644 .changeset/breezy-ants-count.md delete mode 100644 .changeset/eighty-turtles-accept.md delete mode 100644 .changeset/empty-humans-invite.md delete mode 100644 .changeset/hot-ghosts-crash.md delete mode 100644 .changeset/huge-windows-mate.md delete mode 100644 .changeset/little-pots-greet.md delete mode 100644 .changeset/nice-rice-smash.md delete mode 100644 .changeset/smart-houses-deny.md delete mode 100644 .changeset/spicy-cameras-pay.md delete mode 100644 .changeset/ten-parks-rule.md delete mode 100644 .changeset/thirty-walls-bake.md delete mode 100644 .changeset/tough-ideas-wear.md delete mode 100644 .changeset/tricky-glasses-share.md delete mode 100644 .changeset/vast-hotels-chew.md create mode 100644 js/browserstate/CHANGELOG.md diff --git a/.changeset/breezy-ants-count.md b/.changeset/breezy-ants-count.md deleted file mode 100644 index 234199ab05715..0000000000000 --- a/.changeset/breezy-ants-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": minor ---- - -feat:Clearer error message in CheckboxGroup's preprocess function diff --git a/.changeset/eighty-turtles-accept.md b/.changeset/eighty-turtles-accept.md deleted file mode 100644 index a188707a51ee0..0000000000000 --- a/.changeset/eighty-turtles-accept.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/dataframe": patch -"gradio": patch ---- - -fix:Allow dataframe column content to wrap diff --git a/.changeset/empty-humans-invite.md b/.changeset/empty-humans-invite.md deleted file mode 100644 index 9e2120d839f1a..0000000000000 --- a/.changeset/empty-humans-invite.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/datetime": patch -"gradio": patch ---- - -fix:Allow datetime value to be null diff --git a/.changeset/hot-ghosts-crash.md b/.changeset/hot-ghosts-crash.md deleted file mode 100644 index c5195428ab399..0000000000000 --- a/.changeset/hot-ghosts-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -fix:SSR Safari Fix diff --git a/.changeset/huge-windows-mate.md b/.changeset/huge-windows-mate.md deleted file mode 100644 index 2d98744c9c191..0000000000000 --- a/.changeset/huge-windows-mate.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/chatbot": patch -"gradio": patch ---- - -fix:Add `allow_file_downloads` param to allow downloading image/video/audio media in chatbot diff --git a/.changeset/little-pots-greet.md b/.changeset/little-pots-greet.md deleted file mode 100644 index cabccaf298645..0000000000000 --- a/.changeset/little-pots-greet.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"gradio": patch -"gradio_client": patch ---- - -fix:fix: Fix filename stripping to preserve extensions diff --git a/.changeset/nice-rice-smash.md b/.changeset/nice-rice-smash.md deleted file mode 100644 index d50ca87ff84f3..0000000000000 --- a/.changeset/nice-rice-smash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@gradio/file": patch -"@gradio/multimodaltextbox": patch -"gradio": patch ---- - -fix:Hide upload button after upload when `file_count="single"` diff --git a/.changeset/smart-houses-deny.md b/.changeset/smart-houses-deny.md deleted file mode 100644 index a0137d74bd892..0000000000000 --- a/.changeset/smart-houses-deny.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/client": minor -"gradio": minor ---- - -feat:Allow settings custom headers in js client diff --git a/.changeset/spicy-cameras-pay.md b/.changeset/spicy-cameras-pay.md deleted file mode 100644 index aa1876186e3c0..0000000000000 --- a/.changeset/spicy-cameras-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": minor ---- - -feat:Clearer error message in Dropdown's and Radio's preprocess function diff --git a/.changeset/ten-parks-rule.md b/.changeset/ten-parks-rule.md deleted file mode 100644 index d0169860b1f2a..0000000000000 --- a/.changeset/ten-parks-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": minor ---- - -feat:Fix typo in Exception raised by base.py diff --git a/.changeset/thirty-walls-bake.md b/.changeset/thirty-walls-bake.md deleted file mode 100644 index b6a3f0bb9afce..0000000000000 --- a/.changeset/thirty-walls-bake.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@gradio/checkboxgroup": patch -"@gradio/radio": patch -"gradio": patch ---- - -fix:Ensure radio radius is consistent with checkbox radius diff --git a/.changeset/tough-ideas-wear.md b/.changeset/tough-ideas-wear.md deleted file mode 100644 index c385fdba3f13e..0000000000000 --- a/.changeset/tough-ideas-wear.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gradio/multimodaltextbox": patch -"gradio": patch ---- - -fix:Ensure dropped files are validated in MultimediaTextbox diff --git a/.changeset/tricky-glasses-share.md b/.changeset/tricky-glasses-share.md deleted file mode 100644 index 79bdb03afbf22..0000000000000 --- a/.changeset/tricky-glasses-share.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@gradio/client": minor -"@gradio/core": minor -"@gradio/browserstate": minor -"@gradio/utils": minor -"@self/app": minor -"@self/component-test": minor -"@self/spa": minor -"gradio": minor ---- - -feat:Add ability to read and write from LocalStorage diff --git a/.changeset/vast-hotels-chew.md b/.changeset/vast-hotels-chew.md deleted file mode 100644 index 6b80fae2a9dce..0000000000000 --- a/.changeset/vast-hotels-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gradio": patch ---- - -feat:Remember token locally with `gr.load()` diff --git a/CHANGELOG.md b/CHANGELOG.md index b1bfd54e10f89..a2581b23fcc4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # gradio +## 5.6.0 + +### Features + +- [#9906](https://github.com/gradio-app/gradio/pull/9906) [`eafe22c`](https://github.com/gradio-app/gradio/commit/eafe22cd9404d536b03d3fa80003acea78599d49) - Clearer error message in CheckboxGroup's preprocess function. Thanks @muhammadyaseen! +- [#9930](https://github.com/gradio-app/gradio/pull/9930) [`eae345e`](https://github.com/gradio-app/gradio/commit/eae345e5fde39aea220b57c6a954cd7d72ff32d5) - Allow settings custom headers in js client. Thanks @elgiano! +- [#9921](https://github.com/gradio-app/gradio/pull/9921) [`a70ba5e`](https://github.com/gradio-app/gradio/commit/a70ba5e0f01f0c376da0d4e45634bc967f5299f4) - Clearer error message in Dropdown's and Radio's preprocess function. Thanks @muhammadyaseen! +- [#9933](https://github.com/gradio-app/gradio/pull/9933) [`66375ac`](https://github.com/gradio-app/gradio/commit/66375acb5c0a3a8eecc4cfa00701b14f21f3ed68) - Fix typo in Exception raised by base.py. Thanks @meg-huggingface! +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! +- [#9966](https://github.com/gradio-app/gradio/pull/9966) [`da6f191`](https://github.com/gradio-app/gradio/commit/da6f1915547b03601d1808b28e57cca62308df71) - Remember token locally with `gr.load()`. Thanks @abidlabs! + +### Fixes + +- [#9949](https://github.com/gradio-app/gradio/pull/9949) [`cfb62bf`](https://github.com/gradio-app/gradio/commit/cfb62bfdb52d88295f27287f788fca977e37ae6d) - Allow dataframe column content to wrap. Thanks @hannahblair! +- [#9897](https://github.com/gradio-app/gradio/pull/9897) [`c0cf80b`](https://github.com/gradio-app/gradio/commit/c0cf80bddd99ad0f836e618cc3d2b13e73cb5611) - Allow datetime value to be null. Thanks @hannahblair! +- [#9958](https://github.com/gradio-app/gradio/pull/9958) [`75ad3e3`](https://github.com/gradio-app/gradio/commit/75ad3e341978a521df3d11d4f97d6e55f784c9a1) - SSR Safari Fix. Thanks @dawoodkhan82! +- [#9905](https://github.com/gradio-app/gradio/pull/9905) [`08f4b8b`](https://github.com/gradio-app/gradio/commit/08f4b8b000702456e04fac70961a4fbe0058f11c) - Add `allow_file_downloads` param to allow downloading image/video/audio media in chatbot. Thanks @hannahblair! +- [#9913](https://github.com/gradio-app/gradio/pull/9913) [`d81f430`](https://github.com/gradio-app/gradio/commit/d81f430fd50546001b76c0ae5fded32c6d3093f7) - fix: Fix filename stripping to preserve extensions. Thanks @TakaSoap! +- [#9946](https://github.com/gradio-app/gradio/pull/9946) [`a966e9f`](https://github.com/gradio-app/gradio/commit/a966e9f753af25eb9d813dfdbce39be6f3014d82) - Hide upload button after upload when `file_count="single"`. Thanks @abidlabs! +- [#9901](https://github.com/gradio-app/gradio/pull/9901) [`74b4ff0`](https://github.com/gradio-app/gradio/commit/74b4ff0e61a2a32e1cd5e3354d3002b369c7ad83) - Ensure radio radius is consistent with checkbox radius. Thanks @hannahblair! +- [#9904](https://github.com/gradio-app/gradio/pull/9904) [`f523c91`](https://github.com/gradio-app/gradio/commit/f523c915d3732859ff4a8019a82cb597b5208ae2) - Ensure dropped files are validated in MultimediaTextbox. Thanks @hannahblair! + ## 5.5.0 ### Features diff --git a/client/js/CHANGELOG.md b/client/js/CHANGELOG.md index 8bad859ef48f6..6fbe8b44f2453 100644 --- a/client/js/CHANGELOG.md +++ b/client/js/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/client +## 1.8.0 + +### Features + +- [#9930](https://github.com/gradio-app/gradio/pull/9930) [`eae345e`](https://github.com/gradio-app/gradio/commit/eae345e5fde39aea220b57c6a954cd7d72ff32d5) - Allow settings custom headers in js client. Thanks @elgiano! +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! + ## 1.7.1 ### Fixes diff --git a/client/js/package.json b/client/js/package.json index 8ab4cd6d3dfc2..05aa04f5371ef 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/client", - "version": "1.7.1", + "version": "1.8.0", "description": "Gradio API client", "type": "module", "main": "dist/index.js", diff --git a/client/python/CHANGELOG.md b/client/python/CHANGELOG.md index 05061b74dbccd..f6a719e72d295 100644 --- a/client/python/CHANGELOG.md +++ b/client/python/CHANGELOG.md @@ -1,5 +1,11 @@ # gradio_client +## 1.4.3 + +### Fixes + +- [#9913](https://github.com/gradio-app/gradio/pull/9913) [`d81f430`](https://github.com/gradio-app/gradio/commit/d81f430fd50546001b76c0ae5fded32c6d3093f7) - fix: Fix filename stripping to preserve extensions. Thanks @TakaSoap! + ## 1.4.2 ### Fixes diff --git a/client/python/gradio_client/CHANGELOG.md b/client/python/gradio_client/CHANGELOG.md index 05061b74dbccd..f6a719e72d295 100644 --- a/client/python/gradio_client/CHANGELOG.md +++ b/client/python/gradio_client/CHANGELOG.md @@ -1,5 +1,11 @@ # gradio_client +## 1.4.3 + +### Fixes + +- [#9913](https://github.com/gradio-app/gradio/pull/9913) [`d81f430`](https://github.com/gradio-app/gradio/commit/d81f430fd50546001b76c0ae5fded32c6d3093f7) - fix: Fix filename stripping to preserve extensions. Thanks @TakaSoap! + ## 1.4.2 ### Fixes diff --git a/client/python/gradio_client/package.json b/client/python/gradio_client/package.json index 49a7ee9079f70..3a825bdcd13d6 100644 --- a/client/python/gradio_client/package.json +++ b/client/python/gradio_client/package.json @@ -1,6 +1,6 @@ { "name": "gradio_client", - "version": "1.4.2", + "version": "1.4.3", "description": "", "python": "true", "main_changeset": true, diff --git a/gradio/CHANGELOG.md b/gradio/CHANGELOG.md index b1bfd54e10f89..a2581b23fcc4e 100644 --- a/gradio/CHANGELOG.md +++ b/gradio/CHANGELOG.md @@ -1,5 +1,27 @@ # gradio +## 5.6.0 + +### Features + +- [#9906](https://github.com/gradio-app/gradio/pull/9906) [`eafe22c`](https://github.com/gradio-app/gradio/commit/eafe22cd9404d536b03d3fa80003acea78599d49) - Clearer error message in CheckboxGroup's preprocess function. Thanks @muhammadyaseen! +- [#9930](https://github.com/gradio-app/gradio/pull/9930) [`eae345e`](https://github.com/gradio-app/gradio/commit/eae345e5fde39aea220b57c6a954cd7d72ff32d5) - Allow settings custom headers in js client. Thanks @elgiano! +- [#9921](https://github.com/gradio-app/gradio/pull/9921) [`a70ba5e`](https://github.com/gradio-app/gradio/commit/a70ba5e0f01f0c376da0d4e45634bc967f5299f4) - Clearer error message in Dropdown's and Radio's preprocess function. Thanks @muhammadyaseen! +- [#9933](https://github.com/gradio-app/gradio/pull/9933) [`66375ac`](https://github.com/gradio-app/gradio/commit/66375acb5c0a3a8eecc4cfa00701b14f21f3ed68) - Fix typo in Exception raised by base.py. Thanks @meg-huggingface! +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! +- [#9966](https://github.com/gradio-app/gradio/pull/9966) [`da6f191`](https://github.com/gradio-app/gradio/commit/da6f1915547b03601d1808b28e57cca62308df71) - Remember token locally with `gr.load()`. Thanks @abidlabs! + +### Fixes + +- [#9949](https://github.com/gradio-app/gradio/pull/9949) [`cfb62bf`](https://github.com/gradio-app/gradio/commit/cfb62bfdb52d88295f27287f788fca977e37ae6d) - Allow dataframe column content to wrap. Thanks @hannahblair! +- [#9897](https://github.com/gradio-app/gradio/pull/9897) [`c0cf80b`](https://github.com/gradio-app/gradio/commit/c0cf80bddd99ad0f836e618cc3d2b13e73cb5611) - Allow datetime value to be null. Thanks @hannahblair! +- [#9958](https://github.com/gradio-app/gradio/pull/9958) [`75ad3e3`](https://github.com/gradio-app/gradio/commit/75ad3e341978a521df3d11d4f97d6e55f784c9a1) - SSR Safari Fix. Thanks @dawoodkhan82! +- [#9905](https://github.com/gradio-app/gradio/pull/9905) [`08f4b8b`](https://github.com/gradio-app/gradio/commit/08f4b8b000702456e04fac70961a4fbe0058f11c) - Add `allow_file_downloads` param to allow downloading image/video/audio media in chatbot. Thanks @hannahblair! +- [#9913](https://github.com/gradio-app/gradio/pull/9913) [`d81f430`](https://github.com/gradio-app/gradio/commit/d81f430fd50546001b76c0ae5fded32c6d3093f7) - fix: Fix filename stripping to preserve extensions. Thanks @TakaSoap! +- [#9946](https://github.com/gradio-app/gradio/pull/9946) [`a966e9f`](https://github.com/gradio-app/gradio/commit/a966e9f753af25eb9d813dfdbce39be6f3014d82) - Hide upload button after upload when `file_count="single"`. Thanks @abidlabs! +- [#9901](https://github.com/gradio-app/gradio/pull/9901) [`74b4ff0`](https://github.com/gradio-app/gradio/commit/74b4ff0e61a2a32e1cd5e3354d3002b369c7ad83) - Ensure radio radius is consistent with checkbox radius. Thanks @hannahblair! +- [#9904](https://github.com/gradio-app/gradio/pull/9904) [`f523c91`](https://github.com/gradio-app/gradio/commit/f523c915d3732859ff4a8019a82cb597b5208ae2) - Ensure dropped files are validated in MultimediaTextbox. Thanks @hannahblair! + ## 5.5.0 ### Features diff --git a/gradio/package.json b/gradio/package.json index cf4506f3bfaa6..fbc1ac0792e88 100644 --- a/gradio/package.json +++ b/gradio/package.json @@ -1,6 +1,6 @@ { "name": "gradio", - "version": "5.5.0", + "version": "5.6.0", "description": "", "python": "true" } \ No newline at end of file diff --git a/js/_spaces-test/CHANGELOG.md b/js/_spaces-test/CHANGELOG.md index 816286f006381..e1930ed479f26 100644 --- a/js/_spaces-test/CHANGELOG.md +++ b/js/_spaces-test/CHANGELOG.md @@ -4,6 +4,12 @@ ### Dependency updates +- @gradio/client@1.8.0 + +## 0.0.1 + +### Dependency updates + - @gradio/client@1.7.1 ## 0.0.1 diff --git a/js/_website/CHANGELOG.md b/js/_website/CHANGELOG.md index ede7ba3481eb8..ca2f3d17727d9 100644 --- a/js/_website/CHANGELOG.md +++ b/js/_website/CHANGELOG.md @@ -1,5 +1,14 @@ # website +## 0.42.1 + +### Dependency updates + +- @gradio/code@0.10.8 +- @gradio/paramviewer@0.5.7 +- @gradio/tabitem@0.3.4 +- @gradio/tabs@0.3.4 + ## 0.42.0 ### Features diff --git a/js/_website/package.json b/js/_website/package.json index 4e2efb0fc3c49..a942f66ffc2bd 100644 --- a/js/_website/package.json +++ b/js/_website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "0.42.0", + "version": "0.42.1", "private": true, "scripts": { "dev": "pip install boto3 && python generate_jsons/generate.py && vite dev", diff --git a/js/accordion/CHANGELOG.md b/js/accordion/CHANGELOG.md index 1a7d520c54e65..e655b2e7f626d 100644 --- a/js/accordion/CHANGELOG.md +++ b/js/accordion/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/accordion +## 0.5.1 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 +- @gradio/column@0.2.0 + ## 0.5.0 ### Features diff --git a/js/accordion/package.json b/js/accordion/package.json index f7396a4984866..4766c621f8629 100644 --- a/js/accordion/package.json +++ b/js/accordion/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/accordion", - "version": "0.5.0", + "version": "0.5.1", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/annotatedimage/CHANGELOG.md b/js/annotatedimage/CHANGELOG.md index 6f8a0a95b3f88..484a6b1928c00 100644 --- a/js/annotatedimage/CHANGELOG.md +++ b/js/annotatedimage/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/annotatedimage +## 0.8.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.8.7 ### Dependency updates diff --git a/js/annotatedimage/package.json b/js/annotatedimage/package.json index 3f77f26d6b98e..bc9c0de79e3da 100644 --- a/js/annotatedimage/package.json +++ b/js/annotatedimage/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/annotatedimage", - "version": "0.8.7", + "version": "0.8.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/app/CHANGELOG.md b/js/app/CHANGELOG.md index 56f38c3cf10cd..c949f2f1e3b8e 100644 --- a/js/app/CHANGELOG.md +++ b/js/app/CHANGELOG.md @@ -1,5 +1,16 @@ # @self/app +## 1.44.0 + +### Features + +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! + +### Dependency updates + +- @gradio/client@1.8.0 +- @gradio/core@0.4.0 + ## 1.43.1 ### Dependency updates diff --git a/js/app/package.json b/js/app/package.json index 1da7cd1c56558..2dbf3d565c86e 100644 --- a/js/app/package.json +++ b/js/app/package.json @@ -1,6 +1,6 @@ { "name": "@self/app", - "version": "1.43.1", + "version": "1.44.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/js/atoms/CHANGELOG.md b/js/atoms/CHANGELOG.md index bed80f2c95a12..39f6c7e43c18b 100644 --- a/js/atoms/CHANGELOG.md +++ b/js/atoms/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/atoms +## 0.11.1 + +### Dependency updates + +- @gradio/utils@0.8.0 + ## 0.11.0 ### Features diff --git a/js/atoms/package.json b/js/atoms/package.json index f56b04bb17463..4f8b1bb4feca8 100644 --- a/js/atoms/package.json +++ b/js/atoms/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/atoms", - "version": "0.11.0", + "version": "0.11.1", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/audio/CHANGELOG.md b/js/audio/CHANGELOG.md index 19f6317deb2af..d6c11554aed89 100644 --- a/js/audio/CHANGELOG.md +++ b/js/audio/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/audio +## 0.14.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/button@0.3.7 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.14.7 ### Fixes diff --git a/js/audio/package.json b/js/audio/package.json index 5dff97bb8a383..0723ce07c2957 100644 --- a/js/audio/package.json +++ b/js/audio/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/audio", - "version": "0.14.7", + "version": "0.14.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/box/CHANGELOG.md b/js/box/CHANGELOG.md index 0d25901616eb9..6e2a20c832318 100644 --- a/js/box/CHANGELOG.md +++ b/js/box/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/box +## 0.2.6 + +### Dependency updates + +- @gradio/atoms@0.11.1 + ## 0.2.5 ### Dependency updates diff --git a/js/box/package.json b/js/box/package.json index a429d5db98888..ee98c5926fa5b 100644 --- a/js/box/package.json +++ b/js/box/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/box", - "version": "0.2.5", + "version": "0.2.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/browserstate/CHANGELOG.md b/js/browserstate/CHANGELOG.md new file mode 100644 index 0000000000000..32c66d9e9b99c --- /dev/null +++ b/js/browserstate/CHANGELOG.md @@ -0,0 +1,7 @@ +# @gradio/browserstate + +## 0.2.0 + +### Features + +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! \ No newline at end of file diff --git a/js/browserstate/package.json b/js/browserstate/package.json index 80ccbc648713d..db249f087ed75 100644 --- a/js/browserstate/package.json +++ b/js/browserstate/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/browserstate", - "version": "0.1.2", + "version": "0.2.0", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/button/CHANGELOG.md b/js/button/CHANGELOG.md index 9b6099b433adf..e90df52e92071 100644 --- a/js/button/CHANGELOG.md +++ b/js/button/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/button +## 0.3.7 + +### Dependency updates + +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 + ## 0.3.6 ### Dependency updates diff --git a/js/button/package.json b/js/button/package.json index 7ae1f1cba34d4..b147c1119ee95 100644 --- a/js/button/package.json +++ b/js/button/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/button", - "version": "0.3.6", + "version": "0.3.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/chatbot/CHANGELOG.md b/js/chatbot/CHANGELOG.md index 44cf3d90eec81..55af57881a17a 100644 --- a/js/chatbot/CHANGELOG.md +++ b/js/chatbot/CHANGELOG.md @@ -1,5 +1,23 @@ # @gradio/chatbot +## 0.16.3 + +### Fixes + +- [#9905](https://github.com/gradio-app/gradio/pull/9905) [`08f4b8b`](https://github.com/gradio-app/gradio/commit/08f4b8b000702456e04fac70961a4fbe0058f11c) - Add `allow_file_downloads` param to allow downloading image/video/audio media in chatbot. Thanks @hannahblair! + +### Dependency updates + +- @gradio/video@0.11.8 +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/gallery@0.13.8 +- @gradio/plot@0.9.2 +- @gradio/image@0.16.8 + ## 0.16.2 ### Fixes diff --git a/js/chatbot/package.json b/js/chatbot/package.json index 6e3e55adcd963..6f30a0608b9dc 100644 --- a/js/chatbot/package.json +++ b/js/chatbot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/chatbot", - "version": "0.16.2", + "version": "0.16.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/checkbox/CHANGELOG.md b/js/checkbox/CHANGELOG.md index bede2531026dd..c575f49518124 100644 --- a/js/checkbox/CHANGELOG.md +++ b/js/checkbox/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/checkbox +## 0.4.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.4.6 ### Dependency updates diff --git a/js/checkbox/package.json b/js/checkbox/package.json index d569971d7f3a8..4c80727ea0a7c 100644 --- a/js/checkbox/package.json +++ b/js/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/checkbox", - "version": "0.4.6", + "version": "0.4.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/checkboxgroup/CHANGELOG.md b/js/checkboxgroup/CHANGELOG.md index 5d44f32f31bd1..b4b1436ebdc5f 100644 --- a/js/checkboxgroup/CHANGELOG.md +++ b/js/checkboxgroup/CHANGELOG.md @@ -1,5 +1,17 @@ # @gradio/checkboxgroup +## 0.6.7 + +### Fixes + +- [#9901](https://github.com/gradio-app/gradio/pull/9901) [`74b4ff0`](https://github.com/gradio-app/gradio/commit/74b4ff0e61a2a32e1cd5e3354d3002b369c7ad83) - Ensure radio radius is consistent with checkbox radius. Thanks @hannahblair! + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.6.6 ### Dependency updates diff --git a/js/checkboxgroup/package.json b/js/checkboxgroup/package.json index e39e36f2bf98c..7843b76973fe1 100644 --- a/js/checkboxgroup/package.json +++ b/js/checkboxgroup/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/checkboxgroup", - "version": "0.6.6", + "version": "0.6.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/code/CHANGELOG.md b/js/code/CHANGELOG.md index eacb0f3224f7c..2a2748543ccdc 100644 --- a/js/code/CHANGELOG.md +++ b/js/code/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/code +## 0.10.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.10.7 ### Dependency updates diff --git a/js/code/package.json b/js/code/package.json index 5ec006d85a4f4..9ae4ad655c01c 100644 --- a/js/code/package.json +++ b/js/code/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/code", - "version": "0.10.7", + "version": "0.10.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/colorpicker/CHANGELOG.md b/js/colorpicker/CHANGELOG.md index 0dbacc7dee20f..141271efda9f4 100644 --- a/js/colorpicker/CHANGELOG.md +++ b/js/colorpicker/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/colorpicker +## 0.4.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.4.6 ### Dependency updates diff --git a/js/colorpicker/package.json b/js/colorpicker/package.json index 96e56d2f54267..28df34f19048e 100644 --- a/js/colorpicker/package.json +++ b/js/colorpicker/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/colorpicker", - "version": "0.4.6", + "version": "0.4.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/column/CHANGELOG.md b/js/column/CHANGELOG.md index e9d4ea16eb035..ebd23071e9a23 100644 --- a/js/column/CHANGELOG.md +++ b/js/column/CHANGELOG.md @@ -4,6 +4,13 @@ ### Dependency updates +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + +## 0.2.0 + +### Dependency updates + - @gradio/statustracker@0.9.4 ## 0.2.0 diff --git a/js/component-test/CHANGELOG.md b/js/component-test/CHANGELOG.md index 35941b5dd7107..b95469fa76188 100644 --- a/js/component-test/CHANGELOG.md +++ b/js/component-test/CHANGELOG.md @@ -1,5 +1,15 @@ # @self/component-test +## 0.4.0 + +### Features + +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! + +### Dependency updates + +- @gradio/video@0.11.8 + ## 0.3.1 ### Dependency updates diff --git a/js/component-test/package.json b/js/component-test/package.json index e0ae65758b15d..ba94a05977a20 100644 --- a/js/component-test/package.json +++ b/js/component-test/package.json @@ -1,6 +1,6 @@ { "name": "@self/component-test", - "version": "0.3.1", + "version": "0.4.0", "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/js/core/CHANGELOG.md b/js/core/CHANGELOG.md index f2b385daeb3b7..97ad2e8bfebeb 100644 --- a/js/core/CHANGELOG.md +++ b/js/core/CHANGELOG.md @@ -1,5 +1,32 @@ # @gradio/core +## 0.4.0 + +### Features + +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! + +### Dependency updates + +- @gradio/video@0.11.8 +- @gradio/atoms@0.11.1 +- @gradio/code@0.10.8 +- @gradio/paramviewer@0.5.7 +- @gradio/tabitem@0.3.4 +- @gradio/tabs@0.3.4 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/button@0.3.7 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/gallery@0.13.8 +- @gradio/plot@0.9.2 +- @gradio/image@0.16.8 +- @gradio/file@0.11.1 +- @gradio/checkbox@0.4.7 +- @gradio/textbox@0.8.6 +- @gradio/column@0.2.0 + ## 0.3.0 ### Features diff --git a/js/core/package.json b/js/core/package.json index 3e3e4639042bf..1d17b7dfdca9d 100644 --- a/js/core/package.json +++ b/js/core/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/core", - "version": "0.3.0", + "version": "0.4.0", "type": "module", "devDependencies": { "@gradio/accordion": "workspace:^", diff --git a/js/dataframe/CHANGELOG.md b/js/dataframe/CHANGELOG.md index 6021f1cb2a46a..ecd99522ed197 100644 --- a/js/dataframe/CHANGELOG.md +++ b/js/dataframe/CHANGELOG.md @@ -1,5 +1,20 @@ # @gradio/dataframe +## 0.12.3 + +### Fixes + +- [#9949](https://github.com/gradio-app/gradio/pull/9949) [`cfb62bf`](https://github.com/gradio-app/gradio/commit/cfb62bfdb52d88295f27287f788fca977e37ae6d) - Allow dataframe column content to wrap. Thanks @hannahblair! + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/button@0.3.7 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.12.2 ### Fixes diff --git a/js/dataframe/package.json b/js/dataframe/package.json index 2b327488d9265..f65d9bf5deba3 100644 --- a/js/dataframe/package.json +++ b/js/dataframe/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dataframe", - "version": "0.12.2", + "version": "0.12.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dataset/CHANGELOG.md b/js/dataset/CHANGELOG.md index 6c9ddcf0a7e70..5a716329e2638 100644 --- a/js/dataset/CHANGELOG.md +++ b/js/dataset/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/dataset +## 0.3.9 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/textbox@0.8.6 + ## 0.3.8 ### Dependency updates diff --git a/js/dataset/package.json b/js/dataset/package.json index f34f9cf794ca0..dd2f94a8b06b4 100644 --- a/js/dataset/package.json +++ b/js/dataset/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dataset", - "version": "0.3.8", + "version": "0.3.9", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/datetime/CHANGELOG.md b/js/datetime/CHANGELOG.md index 707967f83f0c4..99b11f073245b 100644 --- a/js/datetime/CHANGELOG.md +++ b/js/datetime/CHANGELOG.md @@ -1,5 +1,17 @@ # @gradio/datetime +## 0.2.7 + +### Fixes + +- [#9897](https://github.com/gradio-app/gradio/pull/9897) [`c0cf80b`](https://github.com/gradio-app/gradio/commit/c0cf80bddd99ad0f836e618cc3d2b13e73cb5611) - Allow datetime value to be null. Thanks @hannahblair! + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.2.6 ### Dependency updates diff --git a/js/datetime/package.json b/js/datetime/package.json index 2ee25a5a900dc..2b79b69231883 100644 --- a/js/datetime/package.json +++ b/js/datetime/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/datetime", - "version": "0.2.6", + "version": "0.2.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/downloadbutton/CHANGELOG.md b/js/downloadbutton/CHANGELOG.md index 026c9df638be3..f46d79dbed403 100644 --- a/js/downloadbutton/CHANGELOG.md +++ b/js/downloadbutton/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/downloadbutton +## 0.2.7 + +### Dependency updates + +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/button@0.3.7 + ## 0.2.6 ### Dependency updates diff --git a/js/downloadbutton/package.json b/js/downloadbutton/package.json index c8ba3e72784f3..941f053d89e89 100644 --- a/js/downloadbutton/package.json +++ b/js/downloadbutton/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/downloadbutton", - "version": "0.2.6", + "version": "0.2.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/dropdown/CHANGELOG.md b/js/dropdown/CHANGELOG.md index fd63587fa5bfe..a0520e34cbf34 100644 --- a/js/dropdown/CHANGELOG.md +++ b/js/dropdown/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/dropdown +## 0.9.5 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.9.4 ### Dependency updates diff --git a/js/dropdown/package.json b/js/dropdown/package.json index d2491df516fd1..f1c00134bd682 100644 --- a/js/dropdown/package.json +++ b/js/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/dropdown", - "version": "0.9.4", + "version": "0.9.5", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/fallback/CHANGELOG.md b/js/fallback/CHANGELOG.md index 2b89d82e928ca..0f270a405a373 100644 --- a/js/fallback/CHANGELOG.md +++ b/js/fallback/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/fallback +## 0.4.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.4.6 ### Dependency updates diff --git a/js/fallback/package.json b/js/fallback/package.json index 0fbcf5b8ccc67..c5b9831442dec 100644 --- a/js/fallback/package.json +++ b/js/fallback/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/fallback", - "version": "0.4.6", + "version": "0.4.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/file/CHANGELOG.md b/js/file/CHANGELOG.md index 9c69dbe551c7e..febf03183af60 100644 --- a/js/file/CHANGELOG.md +++ b/js/file/CHANGELOG.md @@ -1,5 +1,19 @@ # @gradio/file +## 0.11.1 + +### Fixes + +- [#9946](https://github.com/gradio-app/gradio/pull/9946) [`a966e9f`](https://github.com/gradio-app/gradio/commit/a966e9f753af25eb9d813dfdbce39be6f3014d82) - Hide upload button after upload when `file_count="single"`. Thanks @abidlabs! + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.11.0 ### Features diff --git a/js/file/package.json b/js/file/package.json index 97eea1f89f4bb..dd38a4b0574fd 100644 --- a/js/file/package.json +++ b/js/file/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/file", - "version": "0.11.0", + "version": "0.11.1", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/fileexplorer/CHANGELOG.md b/js/fileexplorer/CHANGELOG.md index 7e6a7ef6a7a0e..b8d86b8aed7b9 100644 --- a/js/fileexplorer/CHANGELOG.md +++ b/js/fileexplorer/CHANGELOG.md @@ -1,5 +1,17 @@ # @gradio/fileexplorer +## 0.5.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/file@0.11.1 +- @gradio/checkbox@0.4.7 + ## 0.5.7 ### Fixes diff --git a/js/fileexplorer/package.json b/js/fileexplorer/package.json index e7bcd55a2207a..ff60d3d8d1362 100644 --- a/js/fileexplorer/package.json +++ b/js/fileexplorer/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/fileexplorer", - "version": "0.5.7", + "version": "0.5.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/form/CHANGELOG.md b/js/form/CHANGELOG.md index be847b026d2ab..d0fc4b38ed268 100644 --- a/js/form/CHANGELOG.md +++ b/js/form/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/form +## 0.2.6 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 + ## 0.2.5 ### Dependency updates diff --git a/js/form/package.json b/js/form/package.json index e33a87ed8e5fe..5e750d270d58f 100644 --- a/js/form/package.json +++ b/js/form/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/form", - "version": "0.2.5", + "version": "0.2.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/gallery/CHANGELOG.md b/js/gallery/CHANGELOG.md index a50ea5fc4b3bc..e98f632e4921a 100644 --- a/js/gallery/CHANGELOG.md +++ b/js/gallery/CHANGELOG.md @@ -1,5 +1,18 @@ # @gradio/gallery +## 0.13.8 + +### Dependency updates + +- @gradio/video@0.11.8 +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/image@0.16.8 +- @gradio/file@0.11.1 + ## 0.13.7 ### Fixes diff --git a/js/gallery/package.json b/js/gallery/package.json index abc8d6c9157b8..b420f7c8e2156 100644 --- a/js/gallery/package.json +++ b/js/gallery/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/gallery", - "version": "0.13.7", + "version": "0.13.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/highlightedtext/CHANGELOG.md b/js/highlightedtext/CHANGELOG.md index a6c7ff8fa56be..63df20334199c 100644 --- a/js/highlightedtext/CHANGELOG.md +++ b/js/highlightedtext/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/highlightedtext +## 0.8.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.8.6 ### Dependency updates diff --git a/js/highlightedtext/package.json b/js/highlightedtext/package.json index cd9cf8fc1c21b..ebb038c7edafd 100644 --- a/js/highlightedtext/package.json +++ b/js/highlightedtext/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/highlightedtext", - "version": "0.8.6", + "version": "0.8.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/html/CHANGELOG.md b/js/html/CHANGELOG.md index 6c5352fe91d58..39c36c112c1bd 100644 --- a/js/html/CHANGELOG.md +++ b/js/html/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/html +## 0.4.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.4.6 ### Dependency updates diff --git a/js/html/package.json b/js/html/package.json index 07c177ad6b655..bb81365a8fae6 100644 --- a/js/html/package.json +++ b/js/html/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/html", - "version": "0.4.6", + "version": "0.4.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/image/CHANGELOG.md b/js/image/CHANGELOG.md index 2a1fb1ec9e927..a507ae5627080 100644 --- a/js/image/CHANGELOG.md +++ b/js/image/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/image +## 0.16.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.16.7 ### Dependency updates diff --git a/js/image/package.json b/js/image/package.json index cbce27533dff6..4ebf5730130f9 100644 --- a/js/image/package.json +++ b/js/image/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/image", - "version": "0.16.7", + "version": "0.16.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/imageeditor/CHANGELOG.md b/js/imageeditor/CHANGELOG.md index 850cf318f2b20..fc41d41c9acf2 100644 --- a/js/imageeditor/CHANGELOG.md +++ b/js/imageeditor/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/imageeditor +## 0.11.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/image@0.16.8 + ## 0.11.7 ### Dependency updates diff --git a/js/imageeditor/package.json b/js/imageeditor/package.json index 0b324ff354771..4695b87267cb1 100644 --- a/js/imageeditor/package.json +++ b/js/imageeditor/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/imageeditor", - "version": "0.11.7", + "version": "0.11.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/json/CHANGELOG.md b/js/json/CHANGELOG.md index 301423531b7a8..68d5da9eddccb 100644 --- a/js/json/CHANGELOG.md +++ b/js/json/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/json +## 0.5.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.5.6 ### Dependency updates diff --git a/js/json/package.json b/js/json/package.json index 0cccb3c0c76d1..d7a769cca351f 100644 --- a/js/json/package.json +++ b/js/json/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/json", - "version": "0.5.6", + "version": "0.5.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/label/CHANGELOG.md b/js/label/CHANGELOG.md index 127b586201042..bf92e5fd0b059 100644 --- a/js/label/CHANGELOG.md +++ b/js/label/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/label +## 0.4.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.4.6 ### Dependency updates diff --git a/js/label/package.json b/js/label/package.json index 09698e195b4b0..44554e43573bb 100644 --- a/js/label/package.json +++ b/js/label/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/label", - "version": "0.4.6", + "version": "0.4.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/lite/CHANGELOG.md b/js/lite/CHANGELOG.md index 8bb82bc0f0431..8afd0b9512a3c 100644 --- a/js/lite/CHANGELOG.md +++ b/js/lite/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/lite +## 5.6.0 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/core@0.4.0 + ## 5.5.0 ### Features diff --git a/js/lite/package.json b/js/lite/package.json index 34c5ba858bb0e..3380445a89df5 100644 --- a/js/lite/package.json +++ b/js/lite/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/lite", - "version": "5.5.0", + "version": "5.6.0", "description": "Serverless Gradio", "type": "module", "main": "dist/lite.js", diff --git a/js/markdown/CHANGELOG.md b/js/markdown/CHANGELOG.md index b3f0f84b82f1e..9a67eb9346a4a 100644 --- a/js/markdown/CHANGELOG.md +++ b/js/markdown/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/markdown +## 0.11.3 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.11.2 ### Dependency updates diff --git a/js/markdown/package.json b/js/markdown/package.json index e433070625921..d77ecdcf109dd 100644 --- a/js/markdown/package.json +++ b/js/markdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/markdown", - "version": "0.11.2", + "version": "0.11.3", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/model3D/CHANGELOG.md b/js/model3D/CHANGELOG.md index 827b28fbf0a19..c5cc4f2ab383b 100644 --- a/js/model3D/CHANGELOG.md +++ b/js/model3D/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/model3d +## 0.13.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.13.7 ### Dependency updates diff --git a/js/model3D/package.json b/js/model3D/package.json index d3b9d70622dad..7aa54a5d84e94 100644 --- a/js/model3D/package.json +++ b/js/model3D/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/model3d", - "version": "0.13.7", + "version": "0.13.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/multimodaltextbox/CHANGELOG.md b/js/multimodaltextbox/CHANGELOG.md index 4e8c46fc5743f..bd99a03e156f6 100644 --- a/js/multimodaltextbox/CHANGELOG.md +++ b/js/multimodaltextbox/CHANGELOG.md @@ -1,5 +1,22 @@ # @gradio/multimodaltextbox +## 0.7.6 + +### Fixes + +- [#9946](https://github.com/gradio-app/gradio/pull/9946) [`a966e9f`](https://github.com/gradio-app/gradio/commit/a966e9f753af25eb9d813dfdbce39be6f3014d82) - Hide upload button after upload when `file_count="single"`. Thanks @abidlabs! +- [#9904](https://github.com/gradio-app/gradio/pull/9904) [`f523c91`](https://github.com/gradio-app/gradio/commit/f523c915d3732859ff4a8019a82cb597b5208ae2) - Ensure dropped files are validated in MultimediaTextbox. Thanks @hannahblair! + +### Dependency updates + +- @gradio/video@0.11.8 +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/image@0.16.8 + ## 0.7.5 ### Dependency updates diff --git a/js/multimodaltextbox/package.json b/js/multimodaltextbox/package.json index 0903482ce7dd1..bf1d10194cc4c 100644 --- a/js/multimodaltextbox/package.json +++ b/js/multimodaltextbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/multimodaltextbox", - "version": "0.7.5", + "version": "0.7.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/nativeplot/CHANGELOG.md b/js/nativeplot/CHANGELOG.md index 780debba3b093..593707a137f5c 100644 --- a/js/nativeplot/CHANGELOG.md +++ b/js/nativeplot/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/nativeplot +## 0.5.1 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.5.0 ### Features diff --git a/js/nativeplot/package.json b/js/nativeplot/package.json index da380172d85d9..025d3924a9a45 100644 --- a/js/nativeplot/package.json +++ b/js/nativeplot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/nativeplot", - "version": "0.5.0", + "version": "0.5.1", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/number/CHANGELOG.md b/js/number/CHANGELOG.md index 8303131afc51d..1dbc3733f715e 100644 --- a/js/number/CHANGELOG.md +++ b/js/number/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/number +## 0.5.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.5.6 ### Dependency updates diff --git a/js/number/package.json b/js/number/package.json index e198be5152078..a73919edd7e35 100644 --- a/js/number/package.json +++ b/js/number/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/number", - "version": "0.5.6", + "version": "0.5.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/paramviewer/CHANGELOG.md b/js/paramviewer/CHANGELOG.md index df26da538edfb..9810e7be03220 100644 --- a/js/paramviewer/CHANGELOG.md +++ b/js/paramviewer/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/paramviewer +## 0.5.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.5.6 ### Dependency updates diff --git a/js/paramviewer/package.json b/js/paramviewer/package.json index 9ad4e161da2ad..f9b9b24429b69 100644 --- a/js/paramviewer/package.json +++ b/js/paramviewer/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/paramviewer", - "version": "0.5.6", + "version": "0.5.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/plot/CHANGELOG.md b/js/plot/CHANGELOG.md index 9b4d8b1067935..edb22ce0a3dd0 100644 --- a/js/plot/CHANGELOG.md +++ b/js/plot/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/plot +## 0.9.2 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.9.1 ### Dependency updates diff --git a/js/plot/package.json b/js/plot/package.json index 3815e134a0465..a3078c2cf8d14 100644 --- a/js/plot/package.json +++ b/js/plot/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/plot", - "version": "0.9.1", + "version": "0.9.2", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/radio/CHANGELOG.md b/js/radio/CHANGELOG.md index 4704b912841e5..b682569c5fa81 100644 --- a/js/radio/CHANGELOG.md +++ b/js/radio/CHANGELOG.md @@ -1,5 +1,17 @@ # @gradio/radio +## 0.6.7 + +### Fixes + +- [#9901](https://github.com/gradio-app/gradio/pull/9901) [`74b4ff0`](https://github.com/gradio-app/gradio/commit/74b4ff0e61a2a32e1cd5e3354d3002b369c7ad83) - Ensure radio radius is consistent with checkbox radius. Thanks @hannahblair! + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.6.6 ### Dependency updates diff --git a/js/radio/package.json b/js/radio/package.json index 3942ed526c887..68f4c3dfc6f6e 100644 --- a/js/radio/package.json +++ b/js/radio/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/radio", - "version": "0.6.6", + "version": "0.6.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/row/CHANGELOG.md b/js/row/CHANGELOG.md index 0854d17508b3a..5384d7de59759 100644 --- a/js/row/CHANGELOG.md +++ b/js/row/CHANGELOG.md @@ -4,6 +4,13 @@ ### Dependency updates +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + +## 0.2.0 + +### Dependency updates + - @gradio/statustracker@0.9.4 ## 0.2.0 diff --git a/js/simpledropdown/CHANGELOG.md b/js/simpledropdown/CHANGELOG.md index 5a1bbb43d7c3a..4fc48b38f249b 100644 --- a/js/simpledropdown/CHANGELOG.md +++ b/js/simpledropdown/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/simpledropdown +## 0.3.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.3.6 ### Dependency updates diff --git a/js/simpledropdown/package.json b/js/simpledropdown/package.json index ec89a6135ee48..8f664bc3ff00c 100644 --- a/js/simpledropdown/package.json +++ b/js/simpledropdown/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpledropdown", - "version": "0.3.6", + "version": "0.3.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/simpleimage/CHANGELOG.md b/js/simpleimage/CHANGELOG.md index 793b5a1ef9671..7e4c29ab0e3d2 100644 --- a/js/simpleimage/CHANGELOG.md +++ b/js/simpleimage/CHANGELOG.md @@ -1,5 +1,15 @@ # @gradio/simpleimage +## 0.8.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 + ## 0.8.7 ### Dependency updates diff --git a/js/simpleimage/package.json b/js/simpleimage/package.json index fcd50e6b4e939..5ba4acc662793 100644 --- a/js/simpleimage/package.json +++ b/js/simpleimage/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpleimage", - "version": "0.8.7", + "version": "0.8.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/simpletextbox/CHANGELOG.md b/js/simpletextbox/CHANGELOG.md index 892b82437d0d2..b7697eeb4caee 100644 --- a/js/simpletextbox/CHANGELOG.md +++ b/js/simpletextbox/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/simpletextbox +## 0.3.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.3.6 ### Dependency updates diff --git a/js/simpletextbox/package.json b/js/simpletextbox/package.json index 9fd4844793363..dd2fc47cf4533 100644 --- a/js/simpletextbox/package.json +++ b/js/simpletextbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/simpletextbox", - "version": "0.3.6", + "version": "0.3.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/slider/CHANGELOG.md b/js/slider/CHANGELOG.md index d00b0668eeb43..fe429af75b219 100644 --- a/js/slider/CHANGELOG.md +++ b/js/slider/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/slider +## 0.5.7 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.5.6 ### Dependency updates diff --git a/js/slider/package.json b/js/slider/package.json index 31b6eb3d82bc7..7dd0bc1a8644b 100644 --- a/js/slider/package.json +++ b/js/slider/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/slider", - "version": "0.5.6", + "version": "0.5.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/spa/CHANGELOG.md b/js/spa/CHANGELOG.md index c548dc656380a..08c1ef0a492c8 100644 --- a/js/spa/CHANGELOG.md +++ b/js/spa/CHANGELOG.md @@ -1,5 +1,16 @@ # @self/spa +## 0.3.0 + +### Features + +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! + +### Dependency updates + +- @gradio/client@1.8.0 +- @gradio/core@0.4.0 + ## 0.2.0 ### Dependency updates diff --git a/js/spa/package.json b/js/spa/package.json index 8c4755bc2f01f..c528081461291 100644 --- a/js/spa/package.json +++ b/js/spa/package.json @@ -1,6 +1,6 @@ { "name": "@self/spa", - "version": "0.2.0", + "version": "0.3.0", "private": true, "type": "module", "scripts": { diff --git a/js/statustracker/CHANGELOG.md b/js/statustracker/CHANGELOG.md index ec767dfd1e787..8fa21ec413977 100644 --- a/js/statustracker/CHANGELOG.md +++ b/js/statustracker/CHANGELOG.md @@ -1,5 +1,12 @@ # @gradio/statustracker +## 0.9.5 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 + ## 0.9.4 ### Dependency updates diff --git a/js/statustracker/package.json b/js/statustracker/package.json index 693ed0185b070..c8c1891ea8bc4 100644 --- a/js/statustracker/package.json +++ b/js/statustracker/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/statustracker", - "version": "0.9.4", + "version": "0.9.5", "description": "Gradio UI packages", "type": "module", "main": "./index.ts", diff --git a/js/tabitem/CHANGELOG.md b/js/tabitem/CHANGELOG.md index 8e624de251829..d7cc31b4f4c29 100644 --- a/js/tabitem/CHANGELOG.md +++ b/js/tabitem/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/tabitem +## 0.3.4 + +### Dependency updates + +- @gradio/tabs@0.3.4 +- @gradio/utils@0.8.0 +- @gradio/column@0.2.0 + ## 0.3.3 ### Dependency updates diff --git a/js/tabitem/package.json b/js/tabitem/package.json index 68a396ff3bf92..1eecc5fe63419 100644 --- a/js/tabitem/package.json +++ b/js/tabitem/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/tabitem", - "version": "0.3.3", + "version": "0.3.4", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/tabs/CHANGELOG.md b/js/tabs/CHANGELOG.md index 23810e8508d9d..1b431f2c67c2a 100644 --- a/js/tabs/CHANGELOG.md +++ b/js/tabs/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/tabs +## 0.3.4 + +### Dependency updates + +- @gradio/utils@0.8.0 + ## 0.3.3 ### Fixes diff --git a/js/tabs/package.json b/js/tabs/package.json index 68782d27a9d68..34bfd54a68dcc 100644 --- a/js/tabs/package.json +++ b/js/tabs/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/tabs", - "version": "0.3.3", + "version": "0.3.4", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/textbox/CHANGELOG.md b/js/textbox/CHANGELOG.md index 5f9c1eafc531d..a6fd762d27b03 100644 --- a/js/textbox/CHANGELOG.md +++ b/js/textbox/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/textbox +## 0.8.6 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.8.5 ### Fixes diff --git a/js/textbox/package.json b/js/textbox/package.json index ce5d37e417b19..ade2192c26b0b 100644 --- a/js/textbox/package.json +++ b/js/textbox/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/textbox", - "version": "0.8.5", + "version": "0.8.6", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/timer/CHANGELOG.md b/js/timer/CHANGELOG.md index 310a5365b0fe2..bf97873131c49 100644 --- a/js/timer/CHANGELOG.md +++ b/js/timer/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/timer +## 0.4.1 + +### Dependency updates + +- @gradio/utils@0.8.0 + ## 0.3.3-beta.2 ### Dependency updates diff --git a/js/timer/package.json b/js/timer/package.json index 5bb6b040a3734..1e195806bebfd 100644 --- a/js/timer/package.json +++ b/js/timer/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/timer", - "version": "0.4.0", + "version": "0.4.1", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/tootils/CHANGELOG.md b/js/tootils/CHANGELOG.md index 347ad1fab7d4d..7aa4c6a514ccf 100644 --- a/js/tootils/CHANGELOG.md +++ b/js/tootils/CHANGELOG.md @@ -1,5 +1,12 @@ # @self/tootils +## 0.7.8 + +### Dependency updates + +- @gradio/utils@0.8.0 +- @gradio/statustracker@0.9.5 + ## 0.7.7 ### Dependency updates diff --git a/js/tootils/package.json b/js/tootils/package.json index 2c500bbf93822..d45daa0a347e0 100644 --- a/js/tootils/package.json +++ b/js/tootils/package.json @@ -1,6 +1,6 @@ { "name": "@self/tootils", - "version": "0.7.7", + "version": "0.7.8", "description": "Internal test utilities", "type": "module", "main": "src/index.ts", diff --git a/js/upload/CHANGELOG.md b/js/upload/CHANGELOG.md index 5cd1bc868ec4b..099900472181b 100644 --- a/js/upload/CHANGELOG.md +++ b/js/upload/CHANGELOG.md @@ -1,5 +1,13 @@ # @gradio/upload +## 0.14.1 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 + ## 0.14.0 ### Features diff --git a/js/upload/package.json b/js/upload/package.json index 40c01a9cbeacc..f5e110f4484bc 100644 --- a/js/upload/package.json +++ b/js/upload/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/upload", - "version": "0.14.0", + "version": "0.14.1", "description": "Gradio UI packages", "type": "module", "main": "src/index.ts", diff --git a/js/uploadbutton/CHANGELOG.md b/js/uploadbutton/CHANGELOG.md index 39c87e82a75f9..1d240ecf96004 100644 --- a/js/uploadbutton/CHANGELOG.md +++ b/js/uploadbutton/CHANGELOG.md @@ -1,5 +1,14 @@ # @gradio/uploadbutton +## 0.7.7 + +### Dependency updates + +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/button@0.3.7 +- @gradio/upload@0.14.1 + ## 0.7.6 ### Dependency updates diff --git a/js/uploadbutton/package.json b/js/uploadbutton/package.json index b6920b7ab8aec..0798951189227 100644 --- a/js/uploadbutton/package.json +++ b/js/uploadbutton/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/uploadbutton", - "version": "0.7.6", + "version": "0.7.7", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/js/utils/CHANGELOG.md b/js/utils/CHANGELOG.md index 3258b27c7fb2b..fc2ec2d8ad0b9 100644 --- a/js/utils/CHANGELOG.md +++ b/js/utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @gradio/utils +## 0.8.0 + +### Features + +- [#9950](https://github.com/gradio-app/gradio/pull/9950) [`fc06fe4`](https://github.com/gradio-app/gradio/commit/fc06fe41f015678a0545f4e5c99f6ae2704f0031) - Add ability to read and write from LocalStorage. Thanks @abidlabs! + ## 0.7.0 ### Features diff --git a/js/utils/package.json b/js/utils/package.json index 1fa7909fa9e82..2026593e0f4a8 100644 --- a/js/utils/package.json +++ b/js/utils/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/utils", - "version": "0.7.0", + "version": "0.8.0", "description": "Gradio UI packages", "type": "module", "main": "./src/index.ts", diff --git a/js/video/CHANGELOG.md b/js/video/CHANGELOG.md index 86327a0e27d1d..4417a2ee301d8 100644 --- a/js/video/CHANGELOG.md +++ b/js/video/CHANGELOG.md @@ -1,5 +1,16 @@ # @gradio/video +## 0.11.8 + +### Dependency updates + +- @gradio/atoms@0.11.1 +- @gradio/client@1.8.0 +- @gradio/utils@0.8.0 +- @gradio/upload@0.14.1 +- @gradio/statustracker@0.9.5 +- @gradio/image@0.16.8 + ## 0.11.7 ### Dependency updates diff --git a/js/video/package.json b/js/video/package.json index b5592e6f726e2..64fedab9f9bf5 100644 --- a/js/video/package.json +++ b/js/video/package.json @@ -1,6 +1,6 @@ { "name": "@gradio/video", - "version": "0.11.7", + "version": "0.11.8", "description": "Gradio UI packages", "type": "module", "author": "", diff --git a/requirements.txt b/requirements.txt index ef0ca280405aa..cd808c92f51c6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ anyio>=3.0,<5.0 audioop-lts<1.0; python_version >= "3.13" #it provides support for 'audioop' module removed in latest python version used by pydub fastapi>=0.115.2,<1.0 ffmpy -gradio_client==1.4.2 +gradio_client==1.4.3 httpx>=0.24.1 huggingface_hub>=0.25.1 Jinja2<4.0