textlens-ocr / app.py
GoConqurer's picture
first commit
1691ca8
raw
history blame
786 Bytes
"""
TextLens - AI-Powered OCR Application
Main entry point for the application.
"""
import logging
from ui.interface import create_interface
# Configure logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def main():
"""Main function to launch the application."""
logger.info("πŸš€ Starting TextLens OCR application...")
try:
interface = create_interface()
interface.launch(
share=False,
server_name="0.0.0.0",
server_port=7861,
show_error=True,
favicon_path=None,
ssl_verify=False
)
except Exception as e:
logger.error(f"Failed to start application: {str(e)}")
raise
if __name__ == "__main__":
main()