File size: 361 Bytes
1055c12 0354298 1055c12 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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) |