Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,10 @@ model = HfApiModel(
|
|
| 18 |
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
| 19 |
)
|
| 20 |
|
| 21 |
-
prompt_templates = {
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
agent = CodeAgent(
|
| 24 |
model=model,
|
|
|
|
| 18 |
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
| 19 |
)
|
| 20 |
|
| 21 |
+
prompt_templates = {
|
| 22 |
+
"default": "Answer: {{question}}",
|
| 23 |
+
"system_prompt": "You are a helpful assistant. Use tools if necessary to answer the question."
|
| 24 |
+
}
|
| 25 |
|
| 26 |
agent = CodeAgent(
|
| 27 |
model=model,
|