mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
commit (#16)
This commit is contained in:
@@ -629,6 +629,8 @@ class WebRTC(Component):
|
|||||||
js: str | None = None,
|
js: str | None = None,
|
||||||
concurrency_limit: int | None | Literal["default"] = "default",
|
concurrency_limit: int | None | Literal["default"] = "default",
|
||||||
concurrency_id: str | None = None,
|
concurrency_id: str | None = None,
|
||||||
|
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
||||||
|
queue: bool = True,
|
||||||
):
|
):
|
||||||
inputs = inputs or []
|
inputs = inputs or []
|
||||||
if inputs and not isinstance(inputs, Iterable):
|
if inputs and not isinstance(inputs, Iterable):
|
||||||
@@ -651,6 +653,8 @@ class WebRTC(Component):
|
|||||||
js=js,
|
js=js,
|
||||||
concurrency_limit=concurrency_limit,
|
concurrency_limit=concurrency_limit,
|
||||||
concurrency_id=concurrency_id,
|
concurrency_id=concurrency_id,
|
||||||
|
show_progress=show_progress,
|
||||||
|
queue=queue,
|
||||||
)
|
)
|
||||||
|
|
||||||
def stream(
|
def stream(
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "gradio_webrtc"
|
name = "gradio_webrtc"
|
||||||
version = "0.0.11"
|
version = "0.0.12"
|
||||||
description = "Stream images in realtime with webrtc"
|
description = "Stream images in realtime with webrtc"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "apache-2.0"
|
license = "apache-2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user