import sys import os # Add project root to Python path # This is usually not necessary in Hugging Face Spaces if the structure is flat, # but keeping it for robustness if subdirectories are needed. sys.path.append(os.path.dirname(os.path.abspath(__file__))) from ui.streamlit_app import StreamlitApp # Main function to run the application def main(): print("🚀 Starting Agentic RAG Chatbot on Hugging Face Spaces...") print("📝 Make sure to set GOOGLE_API_KEY environment variable for full LLM functionality") # Create and run the Streamlit app app = StreamlitApp() app.run() if __name__ == "__main__": main()