Update app.py
Browse files
app.py
CHANGED
@@ -98,6 +98,7 @@ class BasicAgent:
|
|
98 |
model=mod,
|
99 |
tokenizer=tok,
|
100 |
max_new_tokens=512,
|
|
|
101 |
# temperature=1.0,
|
102 |
)
|
103 |
self.agent = CodeAgent(model=self, tools=[], add_base_tools=True)
|
|
|
98 |
model=mod,
|
99 |
tokenizer=tok,
|
100 |
max_new_tokens=512,
|
101 |
+
return_full_text=False, # <— only get the completion, not the prompt + completion
|
102 |
# temperature=1.0,
|
103 |
)
|
104 |
self.agent = CodeAgent(model=self, tools=[], add_base_tools=True)
|