coleam00/ai-agents-masterclass

web_search_agent_streamlit.py NameError: name 'model' is not defined

Closed this issue · 3 comments

mberth commented

The streamlit version of the web search agent (Pydantic AI) is broken:

$ cd ai-agents-masterclass/pydantic-ai
$ python web_search_agent_streamlit.py
Traceback (most recent call last):
  File "/.../ai-agents-masterclass/pydantic-ai/web_search_agent_streamlit.py", line 24, in <module>
    model,
    ^^^^^
NameError: name 'model' is not defined

I got the same error. Readme is wrong.
I had to run:
streamlit run streamlit_ui.py

I updated the README @aalstes, thank you for pointing that out! And thanks for opening this issue @mberth!

And thank you for your amazing YouTube content! Best channel I know about for learning about AI agents.