# Agent Course - First Agent Template

**URL:** <https://discuss.huggingface.co/t/agent-course-first-agent-template/148170>\
**Category:** Beginners\
**Created:** [March 31, 2025, 9:12am UTC](https://discuss.huggingface.co/t/agent-course-first-agent-template/148170 "2025-03-31T09:12:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 4, 2025, 2:25pm UTC](https://discuss.huggingface.co/t/agent-course-first-agent-template/148170/5 "2025-04-04T14:25:32Z")

</div>

…but it seems that even the latest version of Gradio will generate an error if you try to restart it…  
It seems to work with **5.23.1** (not 5.23.3), but it may be related to the **pydantic** issue below.

> [@Error : No API Found](https://discuss.huggingface.co/t/error-no-api-found/146226):
>
> Hi, I have built a Gemini 2.0 flash based photo editing app with gradio ui. This app is running perfectly fine on my local system, but when I am trying to run it on spaces it is giving me Error : No API Found. I have used gemini api keys in secrects Code : [https://huggingface.co/spaces/Saurabh502/Gemini-photo/resolve/main/app.py](https://huggingface.co/spaces/Saurabh502/Gemini-photo/resolve/main/app.py) Please let me know your thoughts, on how to resolve this. Thanks

> pydantic==2.10.6

---

_[View the full topic](https://discuss.huggingface.co/t/agent-course-first-agent-template/148170)._
