Connecting to an existing assistant api using assistant id, openai api key in streamlit

Please, how to connect to an existing assistant API using Streamlit, assistant ID, and OpenAI API key? All the videos I see just teach how to create a new one. I created my assistant API in the OpenAI playground and I want to connect to it using Streamlit. How can I do it, please?

2 Likes