Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,24 +1,15 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
def add_logo(logo_path, width, height):
|
| 6 |
-
logo = Image.open(logo_path)
|
| 7 |
-
modified_logo = logo.resize((width, height))
|
| 8 |
-
return modified_logo
|
| 9 |
-
|
| 10 |
-
# Example usage
|
| 11 |
-
my_logo = add_logo(logo_path="endesa.jpeg", width=25, height=30)
|
| 12 |
-
st.image('endesa.jpeg', caption="Logo endesa", use_column_width=False)
|
| 13 |
|
| 14 |
# Rest of your Streamlit app
|
| 15 |
-
st.write("#
|
| 16 |
|
| 17 |
# Other content of your app
|
| 18 |
st.title("plAIn")
|
| 19 |
# Add more components here
|
| 20 |
# Create a text input widget
|
| 21 |
-
user_input = st.text_input('Pega tu texto:', '
|
| 22 |
|
| 23 |
# Define a function to process the input
|
| 24 |
def process_text(input_text):
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from PIL import Image
|
| 3 |
+
st.image('endesa.jpeg', caption="Logo endesa", use_column_width=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# Rest of your Streamlit app
|
| 6 |
+
st.write("# Inicio")
|
| 7 |
|
| 8 |
# Other content of your app
|
| 9 |
st.title("plAIn")
|
| 10 |
# Add more components here
|
| 11 |
# Create a text input widget
|
| 12 |
+
user_input = st.text_input('Pega tu texto:', '')
|
| 13 |
|
| 14 |
# Define a function to process the input
|
| 15 |
def process_text(input_text):
|