Spaces:
Sleeping
Sleeping
Download app.py from DexterOpenAI/README: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/DexterOpenAI/README/resolve/main/app.py
- Command line
-
hf download hf://spaces/DexterOpenAI/README/app.py
-
curl -L -o app.py https://huggingface.co/spaces/DexterOpenAI/README/resolve/main/app.py
380 Bytes
| pip install streamlit | |
| import streamlit as st | |
| # Set the title of the app | |
| st.title("Welcome to My Streamlit App") | |
| # Add a text input widget | |
| name = st.text_input("Sanjay Shenvekar:") | |
| # Display a personalized greeting if a name is entered | |
| if name: | |
| st.write(f"Hello, {name}! Welcome to the app.") | |
| else: | |
| st.write("Please enter your name to receive a personalized greeting.") | |