Spaces:
Build error
Build error
Update langgraph_agent.py
Browse files84 unmodified lines8586878889909196 unmodified lines18818919019019119219319484 unmodified lines# HF_API_TOKEN is no longer directly needed for describe_image as that tool is removed.# But keeping InferenceClient initialization for completeness if other HF tools might be added later.HF_API_TOKEN = os.getenv("HF_API_TOKEN")MODEL = os.getenv("MODEL")HF_INFERENCE_CLIENT = Noneif HF_API_TOKEN: HF_INFERENCE_CLIENT = InferenceClient(token=HF_API_TOKEN)96 unmodified linesdef build_graph(provider: str = "gemini"): if provider == "gemini": llm = ChatGoogleGenerativeAI( model="gemini-2.5-pro-preview-05-06", model=MODEL, temperature=1.0, max_retries=2, api_key=GEMINI_API_KEY,langgraph_agent.py+2-1