import os import sys from pathlib import Path # Add the current directory to Python path current_dir = Path(__file__).parent.absolute() if str(current_dir) not in sys.path: sys.path.append(str(current_dir)) # Set environment variables for Playwright os.environ["PLAYWRIGHT_BROWSERS_PATH"] = "/home/user/.cache/ms-playwright" from owl.webapp import create_ui import gradio as gr # Create the Gradio interface demo = create_ui() # Launch the interface with optimized settings if __name__ == "__main__": demo.launch( server_name="0.0.0.0", server_port=7860, share=False, favicon_path="assets/owl-favicon.ico", show_error=True, debug=True )