fix(conf): 还原到以前的配置
This commit is contained in:
3
main.py
3
main.py
@@ -28,7 +28,8 @@ import warnings
|
|||||||
|
|
||||||
# 修复 ANTIALIAS 错误 - 添加猴子补丁
|
# 修复 ANTIALIAS 错误 - 添加猴子补丁
|
||||||
import PIL.Image
|
import PIL.Image
|
||||||
if not hasattr(PIL.Image, 'ANTIALIAS'):
|
|
||||||
|
if not hasattr(PIL.Image, "ANTIALIAS"):
|
||||||
PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore
|
PIL.Image.ANTIALIAS = PIL.Image.Resampling.LANCZOS # type: ignore
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|||||||
@@ -8,11 +8,5 @@ dependencies = [
|
|||||||
"ddddocr>=1.5.6",
|
"ddddocr>=1.5.6",
|
||||||
"dotenv>=0.9.9",
|
"dotenv>=0.9.9",
|
||||||
"lxml>=6.0.2",
|
"lxml>=6.0.2",
|
||||||
"pypi-demo",
|
"requests>=2.32.5",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.uv.sources]
|
|
||||||
pypi-demo = { workspace = true }
|
|
||||||
|
|
||||||
[[tool.uv.index]]
|
|
||||||
url = "https://gitea.kmux.cn/api/packages/python/pypi"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user