Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines89101112137 unmodified linesimport jsonimport re# --- Load necessary components for the RAG system ---# These paths are relative to the Space's root directoryFAISS_INDEX_PATH = "sol_faiss_index.bin"7 unmodified lines891011121314151617187 unmodified linesimport jsonimport re# Add these two lines at the very top, after importsfrom huggingface_hub import HfFolder# This line tells the huggingface_hub to use the 'HF_KEY' environment variable for authenticationHfFolder.save_token(os.environ.get("HF_KEY"))# --- Load necessary components for the RAG system ---# These paths are relative to the Space's root directoryFAISS_INDEX_PATH = "sol_faiss_index.bin"
app.py+5