Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,8 @@ class BasicAgent: # Some times Inheritance is needed
|
|
| 40 |
llm = HuggingFaceEndpoint(
|
| 41 |
endpoint_url="https://api-inference.huggingface.co/models/tiiuae/falcon-7b-instruct",
|
| 42 |
huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"],
|
| 43 |
-
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# Define tools # Description matters a lot, unless youre using @tool as a decorator and a python function (pulls docstring as tool description)
|
|
|
|
| 40 |
llm = HuggingFaceEndpoint(
|
| 41 |
endpoint_url="https://api-inference.huggingface.co/models/tiiuae/falcon-7b-instruct",
|
| 42 |
huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API_TOKEN"],
|
| 43 |
+
temperature=0.5,
|
| 44 |
+
max_new_tokens=512
|
| 45 |
)
|
| 46 |
|
| 47 |
# Define tools # Description matters a lot, unless youre using @tool as a decorator and a python function (pulls docstring as tool description)
|