Thanks @raethlein. I tried with this below css, but Browse Files not getting removed. The new text gets appended with Browse files. Using "display: none "hides the whole button .
css='''<style>
[data-testid='baseButton-secondary']::before {
content: 'New Text';
}
</style>
'''