Spaces:
Sleeping
Sleeping
Add repo id instead of endpint
Browse files
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 |
-
|
| 51 |
temperature=0,
|
| 52 |
huggingfacehub_api_token=os.environ.get("HUGGING_FACE_API_KEY")))
|
| 53 |
tools = [add, subtract, divide, web_search]
|
|
|
|
| 47 |
return context if context else "No results found."
|
| 48 |
|
| 49 |
llm = ChatHuggingFace(llm = HuggingFaceEndpoint(
|
| 50 |
+
repo_id = "meta-llama/Llama-2-7b-chat-hf",
|
| 51 |
temperature=0,
|
| 52 |
huggingfacehub_api_token=os.environ.get("HUGGING_FACE_API_KEY")))
|
| 53 |
tools = [add, subtract, divide, web_search]
|