M5_UGL_2 error executing code

I am getting this error in cell 9, when executing M5_UGL_2 Ungraded Lab, Market Research Team:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[9], line 2
      1 copywriter_agent_result = copywriter_agent(
----> 2     image_path=graphic_designer_agent_result["image_path"],
      3     trend_summary=market_research_result,
      4 )

TypeError: tuple indices must be integers or slices, not str


1 Like

this error is probably happening based on code generated from your earlier prompts in previous exercises.

Try improvising your prompt, add statement instructions to make sure only include indices that are integer and not string

Thank you very much.