Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ class BasicAgent:
|
|
29 |
def __init__(self):
|
30 |
print("BasicAgent initialized.")
|
31 |
self.llm = HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct", huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,)
|
32 |
-
self.chat = ChatHuggingFace(llm=llm, verbose=True)
|
33 |
self.tools = [
|
34 |
multiply,
|
35 |
add,
|
@@ -46,7 +46,7 @@ class BasicAgent:
|
|
46 |
roman_calculator_converter,
|
47 |
get_current_time_in_timezone,
|
48 |
]
|
49 |
-
self.chat_with_tools = chat.bind_tools(tools)
|
50 |
print(f"Total tools available: {len(self.tools)}")
|
51 |
|
52 |
|
|
|
29 |
def __init__(self):
|
30 |
print("BasicAgent initialized.")
|
31 |
self.llm = HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct", huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,)
|
32 |
+
self.chat = ChatHuggingFace(llm=self.llm, verbose=True)
|
33 |
self.tools = [
|
34 |
multiply,
|
35 |
add,
|
|
|
46 |
roman_calculator_converter,
|
47 |
get_current_time_in_timezone,
|
48 |
]
|
49 |
+
self.chat_with_tools = self.chat.bind_tools(tools)
|
50 |
print(f"Total tools available: {len(self.tools)}")
|
51 |
|
52 |
|