mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
默认使用当前版本
This commit is contained in:
@@ -703,7 +703,7 @@ class WebRTC(Component):
|
|||||||
time_limit: float | None = None,
|
time_limit: float | None = None,
|
||||||
mode: Literal["send-receive", "receive", "send"] = "send-receive",
|
mode: Literal["send-receive", "receive", "send"] = "send-receive",
|
||||||
modality: Literal["video", "audio", "audio-video"] = "video",
|
modality: Literal["video", "audio", "audio-video"] = "video",
|
||||||
show_local_video: bool = False,
|
show_local_video: bool = True, # TODO 先默认打开
|
||||||
rtp_params: dict[str, Any] | None = None,
|
rtp_params: dict[str, Any] | None = None,
|
||||||
icon: str | None = None,
|
icon: str | None = None,
|
||||||
icon_button_color: str | None = None,
|
icon_button_color: str | None = None,
|
||||||
|
|||||||
BIN
dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl
vendored
BIN
dist/gradio_webrtc-0.0.30.dev0-py3-none-any.whl
vendored
Binary file not shown.
@@ -17,7 +17,7 @@ def check_node_installed():
|
|||||||
print("Node.js is not installed or not found in PATH.")
|
print("Node.js is not installed or not found in PATH.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def install_wheel(whl_file, force_reinstall=False):
|
def install_wheel(whl_file, force_reinstall=True):
|
||||||
if force_reinstall:
|
if force_reinstall:
|
||||||
subprocess.run(['pip', 'install', '--force-reinstall', whl_file])
|
subprocess.run(['pip', 'install', '--force-reinstall', whl_file])
|
||||||
print(f"Force reinstallation of {whl_file} successful.")
|
print(f"Force reinstallation of {whl_file} successful.")
|
||||||
|
|||||||
Reference in New Issue
Block a user