Spaces:
Sleeping
Sleeping
File size: 802 Bytes
fd50325 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | """
Video Captioning Module - Parent Package
"""
# This allows importing from video_captioning
try:
from .video_captioning.captioning_service import CaptioningService
from .video_captioning.models import Frame, CaptionRecord
from .video_captioning.config import CaptioningConfig
__all__ = ["CaptioningService", "Frame", "CaptionRecord", "CaptioningConfig"]
except ImportError as e:
# Fallback for direct imports
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'video_captioning'))
from captioning_service import CaptioningService
from models import Frame, CaptionRecord
from config import CaptioningConfig
__all__ = ["CaptioningService", "Frame", "CaptionRecord", "CaptioningConfig"]
|