Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,6 @@ class BasicAgent:
|
|
98 |
tokenizer=tok,
|
99 |
max_new_tokens=512,
|
100 |
temperature=1.0,
|
101 |
-
do_sample=False
|
102 |
)
|
103 |
self.agent = CodeAgent(model=self, tools=[], add_base_tools=True)
|
104 |
|
@@ -138,7 +137,7 @@ class BasicAgent:
|
|
138 |
|
139 |
# wrap back into a chat message dict
|
140 |
return {
|
141 |
-
"role":
|
142 |
"content": [{"type": "text", "text": response}],
|
143 |
}
|
144 |
|
|
|
98 |
tokenizer=tok,
|
99 |
max_new_tokens=512,
|
100 |
temperature=1.0,
|
|
|
101 |
)
|
102 |
self.agent = CodeAgent(model=self, tools=[], add_base_tools=True)
|
103 |
|
|
|
137 |
|
138 |
# wrap back into a chat message dict
|
139 |
return {
|
140 |
+
"role": 'assistant',
|
141 |
"content": [{"type": "text", "text": response}],
|
142 |
}
|
143 |
|