error playground

ERROR
(agent) D:\proyecto\agente>python agenteui.py
INFO Starting playground on http://localhost:7777
┏━━━━━━━━━━━━━━━━━━━━━━━ Agent Playground ━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ ┃
┃ URL: Phidata
┃ ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
INFO: Will watch for changes in these directories: [‘D:\proyecto\agente’]
INFO: Uvicorn running on http://localhost:7777 (Press CTRL+C to quit)
INFO: Started reloader process [24856] using WatchFiles
ERROR: Error loading ASGI app. Could not import module “playground”.

Hey @filoynavaja, you have to update your serve_playground_app function to serve_playground_app("agentui:app", reload=True)

You mean you need to update the usage of that function, right?

@filoynavaja can you share your code? I will help you with it

1 Like

@manthanguptaa I encountered the same issue. Can you also help me?

app = Playground(agents=[finance_agent, web_agent]).get_app()

if name == “main”:
serve_playground_app(“playground:app”, reload=True)

@Kason you have to change this

if __name__ == "__main__":
    serve_playground_app("playground:app", reload=True)