# TransformerAgents - error running example notebook

**URL:** <https://discuss.huggingface.co/t/transformeragents-error-running-example-notebook/39545>\
**Category:** 🤗Transformers\
**Created:** [May 11, 2023, 2:09pm UTC](https://discuss.huggingface.co/t/transformeragents-error-running-example-notebook/39545 "2023-05-11T14:09:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubensmau](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rubensmau](https://discuss.huggingface.co/u/rubensmau)\
**Post date:** [May 11, 2023, 2:09pm UTC](https://discuss.huggingface.co/t/transformeragents-error-running-example-notebook/39545/1 "2023-05-11T14:09:00Z")

</div>

When running the provided example notebook [Google Colab](https://colab.research.google.com/drive/1c7MHD-T1forUPGcC_jlwsIptOzpG3hSj)

Got the following error when running a more complex query  
agent.run(“In which city the wife of Barack Obama was born?”)

ValueError: expected sequence of length 31385 at dim 1 (got 31386)  
The above exception was the direct cause of the following exception:
