krrishk22 commited on
Commit
49e574b
·
verified ·
1 Parent(s): 095f785

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -224,6 +224,9 @@ def get_festivals_today(date: str = None) -> str:
224
  final_answer = FinalAnswerTool()
225
 
226
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
 
 
227
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
228
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
229
 
 
224
  final_answer = FinalAnswerTool()
225
 
226
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
227
+
228
+ with open("prompts.yaml", 'r') as stream:
229
+ prompt_templates = yaml.safe_load(stream)
230
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
231
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
232