Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,18 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Other content of your app
|
| 9 |
st.title("My Streamlit App")
|
|
|
|
| 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="path/to/your/logo.png", width=50, height=60)
|
| 12 |
+
st.image(my_logo, caption="Your Logo", use_column_width=True)
|
| 13 |
+
|
| 14 |
+
# Rest of your Streamlit app
|
| 15 |
+
st.write("# Home")
|
| 16 |
|
| 17 |
# Other content of your app
|
| 18 |
st.title("My Streamlit App")
|