ファイルアップローダー

CSVのみ受け取るのであれば,

st.file_uploader(
"テキスト",
type=["csv"]
)

ダウンロードボタン

st.download_button("テキスト", データ)