Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -232,7 +232,6 @@ class LlamaCppModel(Model):
|
|
| 232 |
provider,
|
| 233 |
system_prompt=f"{system_message}",
|
| 234 |
custom_messages_formatter=gemma_3_formatter,
|
| 235 |
-
#predefined_messages_formatter_type=MessagesFormatterType.GEMMA_2,
|
| 236 |
debug_output=True,
|
| 237 |
)
|
| 238 |
temperature = 0.5
|
|
@@ -293,14 +292,14 @@ description="""
|
|
| 293 |
Take a few minute.customized prompt is the key.
|
| 294 |
|
| 295 |
Reference
|
| 296 |
-
- [
|
| 297 |
- [smolagents pull-450](https://github.com/huggingface/smolagents/pull/450)
|
| 298 |
- [Gemma-llamacpp](https://huggingface.co/spaces/sitammeur/Gemma-llamacpp)
|
| 299 |
- [Dataset(m-ric/huggingface_doc)](https://huggingface.co/datasets/m-ric/huggingface_doc)
|
| 300 |
|
| 301 |
"""
|
| 302 |
#Tool not support
|
| 303 |
-
agent = CodeAgent(prompt_templates =yaml.safe_load(prompt),model=model, tools=[retriever_tool],max_steps=1,verbosity_level=
|
| 304 |
|
| 305 |
demo = GradioUI(agent)
|
| 306 |
|
|
|
|
| 232 |
provider,
|
| 233 |
system_prompt=f"{system_message}",
|
| 234 |
custom_messages_formatter=gemma_3_formatter,
|
|
|
|
| 235 |
debug_output=True,
|
| 236 |
)
|
| 237 |
temperature = 0.5
|
|
|
|
| 292 |
Take a few minute.customized prompt is the key.
|
| 293 |
|
| 294 |
Reference
|
| 295 |
+
- [Qwen2.5-0.5B-Rag-Thinking](https://huggingface.co/spaces/Akjava/Qwen2.5-0.5B-Rag-Thinking-Flan-T5)
|
| 296 |
- [smolagents pull-450](https://github.com/huggingface/smolagents/pull/450)
|
| 297 |
- [Gemma-llamacpp](https://huggingface.co/spaces/sitammeur/Gemma-llamacpp)
|
| 298 |
- [Dataset(m-ric/huggingface_doc)](https://huggingface.co/datasets/m-ric/huggingface_doc)
|
| 299 |
|
| 300 |
"""
|
| 301 |
#Tool not support
|
| 302 |
+
agent = CodeAgent(prompt_templates =yaml.safe_load(prompt),model=model, tools=[retriever_tool],max_steps=1,verbosity_level=0,name="AGENT",description=description)
|
| 303 |
|
| 304 |
demo = GradioUI(agent)
|
| 305 |
|