File size: 533 Bytes
5761cdf
 
65e1966
59b41df
65e1966
59b41df
 
65e1966
59b41df
5bb308b
 
 
59b41df
 
 
 
65e1966
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st

st.set_page_config(page_title="Simple Text Analysis", layout="wide")

st.title("Simple Text Analysis")
user_input = st.text_area("Enter your text here:")

if st.button("Analyze"):
    if user_input:
        st.write(f"You entered: {user_input}")
        st.write(f"Character count: {len(user_input)}")
        st.write(f"Word count: {len(user_input.split())}")
    else:
        st.warning("Please enter some text to analyze.")

st.sidebar.title("About")
st.sidebar.info("This is a simple text analysis app.")