import streamlit as st | |
def greeting(name): | |
st.write(f"Hello, {name}!") | |
st.title("My first Streamlit app") | |
st.text("This is a simple app that greets the user.") | |
name = st.text_input("What is your name?") | |
if name: | |
greeting(name) | |
import streamlit as st | |
def greeting(name): | |
st.write(f"Hello, {name}!") | |
st.title("My first Streamlit app") | |
st.text("This is a simple app that greets the user.") | |
name = st.text_input("What is your name?") | |
if name: | |
greeting(name) | |