IAGO / app.py
James Frecheville
Fix import paths for utils module
1055c12
raw
history blame
361 Bytes
import os
import sys
import gradio as gr
from pathlib import Path
# Add the current directory to Python path
current_dir = Path(__file__).parent.absolute()
sys.path.append(str(current_dir))
from owl.webapp import create_ui
# Create the Gradio interface
demo = create_ui()
# For Hugging Face Spaces
app = demo.launch(server_name="0.0.0.0", server_port=7860)