Getting these extra texts on screen while deploying locally

I don’t see it in your code snippet, but the screenshot you shared looks like you might be using, like this

import streamlit as st

Are you using somewhere in your code?

By the way, this is a helpful post about the best way to get issues resolved on the forum How to post a question in the Streamlit forum ✍️ 🎈