Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,6 +68,9 @@ webSearch = web_search_DuckDuckGoSearchTool()
|
|
| 68 |
video_translation = AudioTranscriptionTool()
|
| 69 |
youtube_download = YouTubeAudioDownloadTool()
|
| 70 |
|
|
|
|
|
|
|
|
|
|
| 71 |
#Agent
|
| 72 |
agent_codeagent = CodeAgent(
|
| 73 |
model=model,
|
|
@@ -78,7 +81,7 @@ agent_codeagent = CodeAgent(
|
|
| 78 |
planning_interval=None,
|
| 79 |
name=None,
|
| 80 |
description=None
|
| 81 |
-
|
| 82 |
)
|
| 83 |
|
| 84 |
# Gradio handler that runs the agent
|
|
|
|
| 68 |
video_translation = AudioTranscriptionTool()
|
| 69 |
youtube_download = YouTubeAudioDownloadTool()
|
| 70 |
|
| 71 |
+
with open("prompts.yaml", 'r') as stream:
|
| 72 |
+
prompt_templates = yaml.safe_load(stream)
|
| 73 |
+
|
| 74 |
#Agent
|
| 75 |
agent_codeagent = CodeAgent(
|
| 76 |
model=model,
|
|
|
|
| 81 |
planning_interval=None,
|
| 82 |
name=None,
|
| 83 |
description=None
|
| 84 |
+
prompt_templates=prompt_templates
|
| 85 |
)
|
| 86 |
|
| 87 |
# Gradio handler that runs the agent
|