Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,6 @@ class BasicAgent:
|
|
21 |
print("BasicAgent initialized.")
|
22 |
model = InferenceClientModel(
|
23 |
token=hf_token,
|
24 |
-
max_input_tokens=20000, # new: limit total tokens
|
25 |
-
max_new_tokens=512 # still allow enough answer length
|
26 |
)
|
27 |
self.agent = CodeAgent(
|
28 |
tools=[DuckDuckGoSearchTool(), suggest_outfit, define_coordinates, get_weather],
|
|
|
21 |
print("BasicAgent initialized.")
|
22 |
model = InferenceClientModel(
|
23 |
token=hf_token,
|
|
|
|
|
24 |
)
|
25 |
self.agent = CodeAgent(
|
26 |
tools=[DuckDuckGoSearchTool(), suggest_outfit, define_coordinates, get_weather],
|