st.text_input for accepting the Name string values
st.number_input or st.slider for accepting numerical values
Next, you can combine these user-provided information as a DataFrame via the pandas library.
Finally, to calculate the Risk_Contribution you may either have to build a machine learning model or have an equation from which to calculate this value. Finally the calculated value can be displayed in-app via st.write, st.info, st.warning, st.error`, etc.