Spaces:
Sleeping
Sleeping
File size: 393 Bytes
9e909f5 23e6380 9e909f5 23e6380 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from pathlib import Path
import warnings
import os
from . import agent
# Ensure upload directory exists
upload_dir = "/tmp/uploads"
Path(upload_dir).mkdir(parents=True, exist_ok=True)
# Read, write, execute for owner; read and execute for others
os.chmod(upload_dir, 0o755)
# Suppress Pydantic serialization warnings
warnings.filterwarnings("ignore", message="Pydantic serializer warnings")
|