Spaces:
Sleeping
Sleeping
File size: 647 Bytes
be454f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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() |