Hi @prajwalpoojary ,
Given you already have Streamlit on 0.0.0.0:8000 and FastAPI on 127.0.0.1:8080, you can keep that split and do server-side calls from Streamlit to http://127.0.0.1:8080/. Itโs efficient and avoids cross-origin/auth issues. If you later want external clients to call the API, move those endpoints under /api on the public 8000 server and use OAuth tokens.
This blog post walks through setting up a react chat frontend to interact with a FastApi backend.