Download app.py from Torofff/Mark: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/Torofff/Mark/resolve/main/app.py
- Command line
-
hf download hf://spaces/Torofff/Mark/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Torofff/Mark/resolve/main/app.py
520 Bytes
| import streamlit as st | |
| def main(): | |
| st.title("Saludador Personalizado") | |
| # Entradas de usuario | |
| nombre = st.text_input("Ingresa tu nombre") | |
| apellido = st.text_input("Ingresa tu apellido") | |
| # Botón para mostrar saludo | |
| if st.button("Saludo y Respuesta"): | |
| if nombre and apellido: | |
| st.success(f"¡Hola, {nombre} {apellido}! Encantado de saludarte.") | |
| else: | |
| st.error("Por favor, ingresa tanto el nombre como el apellido.") | |
| if __name__ == "__main__": | |
| main() | |