yoda1976 commited on
Commit
8d72886
·
1 Parent(s): d5fbb39

Add meta llama as endpoint

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -47,7 +47,7 @@ def web_search(query: str) -> str:
47
  return context if context else "No results found."
48
 
49
  llm = ChatHuggingFace(llm = HuggingFaceEndpoint(
50
- endpoint_url="https://api-inference.huggingface.co/models/Meta-DeepLearning/llama-2-7b-chat-hf",
51
  temperature=0))
52
  tools = [add, subtract, divide, web_search]
53
  llm_with_tools = llm.bind_tools(tools, parallel_tool_calls = False)
 
47
  return context if context else "No results found."
48
 
49
  llm = ChatHuggingFace(llm = HuggingFaceEndpoint(
50
+ endpoint_url="https://api-inference.huggingface.co/models/meta-llama/llama-2-7b-chat-hf",
51
  temperature=0))
52
  tools = [add, subtract, divide, web_search]
53
  llm_with_tools = llm.bind_tools(tools, parallel_tool_calls = False)