Having trouble importing streamlit and transposing Python code into Swift

Im having trouble deploying my Streamlit app onto Xcode locally. Its imported onto my Terminal. How do I transpose this Python code into Swift so that I can successfully run my build? Looks like my package was imported successfully, my syntax is still off.

Having trouble importing streamlit and transposing Python code into Swift
 
 
Q