|
import streamlit as st |
|
from PIL import Image |
|
|
|
|
|
def add_logo(logo_path, width, height): |
|
logo = Image.open(logo_path) |
|
modified_logo = logo.resize((width, height)) |
|
return modified_logo |
|
|
|
|
|
my_logo = add_logo(logo_path="endesa.jpeg", width=25, height=30) |
|
st.image(my_logo, caption="Logo endesa", use_column_width=True) |
|
|
|
|
|
st.write("# Home") |
|
|
|
|
|
st.title("plAIn") |
|
|
|
|
|
user_input = st.text_input('Pega tu texto:', 'Hello, Streamlit!') |
|
|
|
|
|
def process_text(input_text): |
|
|
|
return input_text.upper() |
|
|
|
|
|
processed_output = process_text(user_input) |
|
|
|
|
|
st.write('Texto procesado:', processed_output) |