Update app.py
#534
by
saisravanthi8333
- opened
app.py
CHANGED
|
@@ -54,16 +54,12 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
name=None,
|
| 64 |
-
description=None,
|
| 65 |
-
prompt_templates=prompt_templates
|
| 66 |
)
|
| 67 |
|
| 68 |
-
|
| 69 |
GradioUI(agent).launch()
|
|
|
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
+
tools=[...],
|
| 58 |
+
model=...,
|
| 59 |
+
name="my_huggingface_agent", # ✅ valid Python identifier
|
| 60 |
+
instructions="You are a helpful AI agent that can answer questions and use tools.",
|
| 61 |
+
verbosity_level=1
|
| 62 |
+
|
|
|
|
|
|
|
|
|
|
| 63 |
)
|
| 64 |
|
|
|
|
| 65 |
GradioUI(agent).launch()
|