Update app.py
Browse files
app.py
CHANGED
|
@@ -42,11 +42,12 @@ search_tool = DuckDuckGoSearchRun()
|
|
| 42 |
tools = [search_tool]
|
| 43 |
|
| 44 |
# LLM
|
| 45 |
-
model =
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
| 48 |
)
|
| 49 |
-
|
| 50 |
class BasicAgent:
|
| 51 |
def __init__(self):
|
| 52 |
self.agent = create_react_agent(model, tools, prompt)
|
|
|
|
| 42 |
tools = [search_tool]
|
| 43 |
|
| 44 |
# LLM
|
| 45 |
+
model = ChatHuggingFace(
|
| 46 |
+
llm=HuggingFaceEndpoint(
|
| 47 |
+
url="https://api-inference.huggingface.co/models/Meta-DeepLearning/llama-2-7b-chat-hf",
|
| 48 |
+
temperature=0,
|
| 49 |
+
),
|
| 50 |
)
|
|
|
|
| 51 |
class BasicAgent:
|
| 52 |
def __init__(self):
|
| 53 |
self.agent = create_react_agent(model, tools, prompt)
|