Improve image upload in debug drawer

This commit is contained in:
Xin Wang
2026-08-05 21:28:51 +08:00
parent e36ca308b8
commit 0c0a51da95
6 changed files with 37 additions and 7 deletions

View File

@@ -12,6 +12,12 @@
/api/webrtc/ice-servers WebRTC STUN/TURN 配置
"""
import os
# NLTK 3.9+ blocks dependency imports when .venv lives under cwd (local dev layout).
# pipecat -> nltk -> regex hits this false positive; disable before any nltk import.
os.environ.setdefault("NLTK_DISABLE_IMPORT_SECURITY", "1")
from contextlib import asynccontextmanager
import settings