rsobieski commited on
Commit
a5257b1
·
verified ·
1 Parent(s): d97c662

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -3
agent.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  import pandas as pd
3
  from langchain_core.messages import HumanMessage, AIMessage
4
  from langgraph.graph import StateGraph, MessagesState
5
- from langchain_huggingface import HuggingFaceEndpoint, HuggingFaceInferenceAPI
6
  from tools import TOOLS
7
 
8
  # --- Read local QA data for retriever ---
@@ -17,8 +17,7 @@ def build_graph():
17
  # Initialize Mistral model
18
  llm = HuggingFaceEndpoint(
19
  # repo_id="mistralai/Mistral-7B-Instruct-v0.3",
20
- llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-Coder-32B-Instruct"),
21
- # task="conver"
22
  huggingfacehub_api_token=os.environ["HF_TOKEN"]
23
  )
24
 
 
2
  import pandas as pd
3
  from langchain_core.messages import HumanMessage, AIMessage
4
  from langgraph.graph import StateGraph, MessagesState
5
+ from langchain_huggingface import HuggingFaceEndpoint
6
  from tools import TOOLS
7
 
8
  # --- Read local QA data for retriever ---
 
17
  # Initialize Mistral model
18
  llm = HuggingFaceEndpoint(
19
  # repo_id="mistralai/Mistral-7B-Instruct-v0.3",
20
+ task="conversation",
 
21
  huggingfacehub_api_token=os.environ["HF_TOKEN"]
22
  )
23