Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ web_search = DuckDuckGoSearchTool()
|
|
21 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
22 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
23 |
|
24 |
-
model = HfApiModel(model_id='meta-llama/Llama-3.3-70B-Instruct')
|
25 |
|
26 |
|
27 |
class BasicAgent:
|
@@ -34,6 +34,7 @@ class BasicAgent:
|
|
34 |
verbosity_level=1,
|
35 |
grammar=None,
|
36 |
planning_interval=3,
|
|
|
37 |
)
|
38 |
|
39 |
def __call__(self, question: str) -> str:
|
|
|
21 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
22 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
23 |
|
24 |
+
model = HfApiModel(model_id='meta-llama/Llama-3.3-70B-Instruct', max_tokens=1024)
|
25 |
|
26 |
|
27 |
class BasicAgent:
|
|
|
34 |
verbosity_level=1,
|
35 |
grammar=None,
|
36 |
planning_interval=3,
|
37 |
+
|
38 |
)
|
39 |
|
40 |
def __call__(self, question: str) -> str:
|