I am getting this error when trying to run Streamlit using Agno V1.1.13

I am getting the below error when trying to run streamlit from Agno V1.1.13

RuntimeError: There is no current event loop in thread ‘ScriptRunner.scriptThread’.

Any idea what might be wrong

This is the snippet of code that streamlit is trying to call:
with st.chat_message(“assistant”):
chunks: RunResponse = team_agent.run(prompt, stream=False)
print("The id is " + str(chunks.session_id))
response = chunks.content
#response = st.write_stream(as_stream(chunks))
st.write(response)
st.session_state.messages.append({“role”: “assistant”, “content”: response})

Hi @edisonpearce
Thanks for reaching out and for using Agno! I’ve looped in the right engineers to help with your question. We usually respond within 48 hours, but if this is urgent, just let us know, and we’ll do our best to prioritize it.
Appreciate your patience—we’ll get back to you soon! :smile:

Hey @edisonpearce, you might be running your file using python main.py. You’ll need to run it using the Streamlit command instead: streamlit run main.py.