test_space / app.py
kurniawan
Convert to Streamlit app
1836fa2
raw
history blame
344 Bytes
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())}")