增加画中画模式

This commit is contained in:
杍超
2025-01-22 19:12:30 +08:00
parent 4b5968acd4
commit 053b365b7b
4 changed files with 39 additions and 17 deletions

View File

@@ -95,12 +95,12 @@ with gr.Blocks(css=css) as demo:
with gr.Column():
webrtc = WebRTC(
width=1500,
height=500,
label="Local",
width=500,
height=1500,
label="Video Chat",
modality="audio-video",
mode="send-receive",
show_local_video=True,
show_local_video='picture-in-picture',
elem_id="video-source",
)
webrtc.stream(