Spaces:
Running
Running
File size: 1,291 Bytes
ee252f4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
"""
LifeAdmin AI - Utilities Module
Helper functions for:
- llm_utils: LLM provider management and fallback chain
- audio_utils: Text-to-speech and speech-to-text processing
- pdf_utils: PDF manipulation and text extraction
- text_utils: Text parsing and extraction
- file_utils: File operations and management
"""
from .llm_utils import get_llm_response, setup_llm_fallback
from .audio_utils import text_to_speech, speech_to_text, process_audio_input
from .pdf_utils import (
extract_text_from_pdf,
get_pdf_metadata,
split_pdf_pages
)
from .text_utils import (
extract_dates,
extract_amounts,
extract_emails,
extract_phone_numbers,
clean_text
)
from .file_utils import (
get_file_info,
ensure_directory,
copy_file,
move_file,
list_files
)
__all__ = [
# LLM
'get_llm_response',
'setup_llm_fallback',
# Audio
'text_to_speech',
'speech_to_text',
'process_audio_input',
# PDF
'extract_text_from_pdf',
'get_pdf_metadata',
'split_pdf_pages',
# Text
'extract_dates',
'extract_amounts',
'extract_emails',
'extract_phone_numbers',
'clean_text',
# Files
'get_file_info',
'ensure_directory',
'copy_file',
'move_file',
'list_files',
]
|