File size: 900 Bytes
b9e397f
d4caf59
b9e397f
d4caf59
 
 
 
 
 
 
e857c72
a7dbb23
d4caf59
 
 
b9e397f
 
fd69caf
b9e397f
 
e857c72
b9e397f
 
 
 
 
 
 
 
 
 
e857c72
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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

# Example usage
my_logo = add_logo(logo_path="endesa.jpeg", width=25, height=30)
st.image('endesa.jpeg', caption="Logo endesa", use_column_width=True)

# Rest of your Streamlit app
st.write("# Home")

# 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:', 'Hello, Streamlit!')

# 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)