import os import gradio as gr from dotenv import load_dotenv from src.app import DryingApp # Load environment variables load_dotenv() # Check if API keys are available if not os.getenv("OPENROUTER_API_KEY"): print("Warning: OPENROUTER_API_KEY environment variable not set") if not os.getenv("STABILITY_API_KEY"): print("Warning: STABILITY_API_KEY environment variable not set") # Initialize the Drying Assistant application app = DryingApp() # Create the Gradio interface demo = app.create_interface() # This is important for Hugging Face Spaces to recognize the application demo.launch(server_name="0.0.0.0", server_port=7860, share=False)