Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,11 +24,7 @@ class BasicAgent:
|
|
24 |
)
|
25 |
self.agent = CodeAgent(
|
26 |
tools=[DuckDuckGoSearchTool(), suggest_outfit, define_coordinates, get_weather],
|
27 |
-
model=model
|
28 |
-
pipeline_kwargs={
|
29 |
-
"max_new_tokens": 512, # allow longer answers
|
30 |
-
"truncate": True # automatically trim too long prompts
|
31 |
-
}
|
32 |
)
|
33 |
|
34 |
def __call__(self, question: str) -> str:
|
|
|
24 |
)
|
25 |
self.agent = CodeAgent(
|
26 |
tools=[DuckDuckGoSearchTool(), suggest_outfit, define_coordinates, get_weather],
|
27 |
+
model=model
|
|
|
|
|
|
|
|
|
28 |
)
|
29 |
|
30 |
def __call__(self, question: str) -> str:
|