Spaces:
Sleeping
Sleeping
Updating app.py
Browse files
app.py
CHANGED
|
@@ -40,12 +40,13 @@ class BasicAgent:
|
|
| 40 |
"If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. "
|
| 41 |
"If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
|
| 42 |
)
|
| 43 |
-
|
| 44 |
model = 'gpt-4o-mini',
|
| 45 |
temperature = 0,
|
| 46 |
openai_api_key = OPENAI_KEY,
|
| 47 |
max_tokens = 4096
|
| 48 |
)
|
|
|
|
| 49 |
search = GoogleSerperAPIWrapper()
|
| 50 |
wikipedia = WikipediaQueryRun(api_wrapper=WikipediaAPIWrapper())
|
| 51 |
tools = [Tool(
|
|
|
|
| 40 |
"If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. "
|
| 41 |
"If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string."
|
| 42 |
)
|
| 43 |
+
llm = ChatOpenAI(
|
| 44 |
model = 'gpt-4o-mini',
|
| 45 |
temperature = 0,
|
| 46 |
openai_api_key = OPENAI_KEY,
|
| 47 |
max_tokens = 4096
|
| 48 |
)
|
| 49 |
+
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 50 |
search = GoogleSerperAPIWrapper()
|
| 51 |
wikipedia = WikipediaQueryRun(api_wrapper=WikipediaAPIWrapper())
|
| 52 |
tools = [Tool(
|