Synnove commited on
Commit
17287fc
·
verified ·
1 Parent(s): 8f2f1ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- #prompt_templates=prompt_templates
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