File size: 344 Bytes
1836fa2
02e7c0e
1836fa2
02e7c0e
1836fa2
02e7c0e
1836fa2
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import streamlit as st

st.title("Simple Input/Output App")

user_input = st.text_input("Enter your text:", placeholder="Type something here...")

if user_input:
    st.write("### Output:")
    st.write(f"You entered: **{user_input}**")
    st.write(f"Character count: {len(user_input)}")
    st.write(f"Word count: {len(user_input.split())}")