Spaces:
Running
Running
File size: 556 Bytes
7632cf2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # my_vision_process.py (Stub for HF Spaces / Lite Mode)
import logging
logger = logging.getLogger(__name__)
# Dummy client
client = None
def process_vision_info(messages, return_video_kwargs=False, client=None):
"""
Stub function to prevent ImportErrors in API-only mode.
If this is called, it means LITE_MODE logic failed or was bypassed.
"""
logger.warning("process_vision_info called in LITE/API environment. Returning empty placeholders.")
if return_video_kwargs:
return None, None, {"fps": [0]}
return None, None |