Spaces:
Running
Running
File size: 786 Bytes
1691ca8 |
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 |
"""
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() |