import streamlit as st | |
from PIL import Image | |
st.image('endesa.jpeg', caption="Logo endesa", use_column_width=False) | |
# Rest of your Streamlit app | |
st.write("# Inicio") | |
# Other content of your app | |
st.title("plAIn") | |
# Add more components here | |
# Create a text input widget | |
user_input = st.text_input('Pega tu texto:', '') | |
# Define a function to process the input | |
def process_text(input_text): | |
# Perform some operation on the input (e.g., convert to uppercase) | |
return input_text.upper() | |
# Call the function with the user input | |
processed_output = process_text(user_input) | |
# Display the processed output | |
st.write('Texto procesado:', processed_output) |