ecuartasm's picture
Add Hugging Face Spaces configuration
887eb10
raw
history blame contribute delete
425 Bytes
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()