Spaces:
Sleeping
Sleeping
Download app.py from codechrl/test_space: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/codechrl/test_space/resolve/1836fa21d9a4d2985bbd4e6ffb71fde7433ee44d/app.py
- Command line
-
hf download hf://spaces/codechrl/test_space@1836fa21d9a4d2985bbd4e6ffb71fde7433ee44d/app.py
-
curl -L -o app.py https://huggingface.co/spaces/codechrl/test_space/resolve/1836fa21d9a4d2985bbd4e6ffb71fde7433ee44d/app.py
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())}") | |