File size: 702 Bytes
1055c12 0354298 94abab7 1055c12 0b142d7 94abab7 e7f6bbd 1055c12 94abab7 1055c12 94abab7 1055c12 94abab7 0b142d7 d4bd95e 0b142d7 94abab7 6dd1eb7 94abab7 0b142d7 |
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 |
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
) |