File size: 425 Bytes
217abc3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
887eb10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from dotenv import load_dotenv
from ui.app import create_ui

# Load environment variables
load_dotenv()

# Check if API key is set
if not os.getenv("OPENAI_API_KEY"):
    print("Warning: OPENAI_API_KEY environment variable not set.")
    print("Please set it in a .env file or in your environment variables.")

if __name__ == "__main__":
    # Create and launch the Gradio UI
    app = create_ui()
    app.launch()