优化resize 逻辑,numpy版本依赖

This commit is contained in:
杍超
2025-02-06 14:27:33 +08:00
parent 0778080e44
commit 6117b26a48
4 changed files with 24 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ requires-python = ">=3.10"
authors = [{ name = "Freddy Boulton", email = "YOUREMAIL@domain.com" }]
keywords = ["gradio-custom-component", "gradio-template-Video", "streaming", "webrtc", "realtime"]
# Add dependencies here
dependencies = ["gradio>=4.0,<6.0", "aiortc"]
dependencies = ["gradio>=4.0,<6.0", "aiortc", "numpy<3.0,>=1.0"]
classifiers = [
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
@@ -47,7 +47,7 @@ vad = ["librosa", "onnxruntime"]
stopword = ["silero", "librosa", "onnxruntime"]
[tool.hatch.build]
artifacts = ["/backend/gradio_webrtc/templates", "*.pyi"]
artifacts = ["/backend/gradio_webrtc/templates", "*.pyi", "/Users/huangbinchao/miniconda3/envs/gradio_rtc/lib/python3.12/site-packages/gradio_webrtc/templates"]
[tool.hatch.build.targets.wheel]
packages = ["/backend/gradio_webrtc"]