Manith Marapperuma πΎ
commited on
Commit
Β·
ddf9c28
1
Parent(s):
b9655a1
modified alignments
Browse files
app.py
CHANGED
|
@@ -20,10 +20,10 @@ st.set_page_config(
|
|
| 20 |
|
| 21 |
# Add a title to the app
|
| 22 |
st.title("π Jokerrr - AI Fun Facts Generator")
|
| 23 |
-
col1, col2, col3 = st.columns([1,
|
| 24 |
with col2:
|
| 25 |
st.image("img/batman.png",
|
| 26 |
-
width=
|
| 27 |
|
| 28 |
# Initialize LLM
|
| 29 |
@st.cache_resource
|
|
@@ -71,13 +71,13 @@ main_container = st.container()
|
|
| 71 |
|
| 72 |
with main_container:
|
| 73 |
# Create columns for center alignment
|
| 74 |
-
col1, col2, col3 = st.columns([1,
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
# Put the button in the middle column
|
| 79 |
with col2:
|
| 80 |
-
st.
|
| 81 |
|
| 82 |
|
| 83 |
if st.button("Generate Fun Fact! π²", use_container_width=True):
|
|
|
|
| 20 |
|
| 21 |
# Add a title to the app
|
| 22 |
st.title("π Jokerrr - AI Fun Facts Generator")
|
| 23 |
+
col1, col2, col3 = st.columns([1,12,1])
|
| 24 |
with col2:
|
| 25 |
st.image("img/batman.png",
|
| 26 |
+
width=600)
|
| 27 |
|
| 28 |
# Initialize LLM
|
| 29 |
@st.cache_resource
|
|
|
|
| 71 |
|
| 72 |
with main_container:
|
| 73 |
# Create columns for center alignment
|
| 74 |
+
col1, col2, col3 = st.columns([1,8,1])
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
# Put the button in the middle column
|
| 79 |
with col2:
|
| 80 |
+
st.markdown("<h6 style='text-align: center; font-family: Source Sans Pro;'>Click the button below to get AI-generated fun facts! π</h6>", unsafe_allow_html=True)
|
| 81 |
|
| 82 |
|
| 83 |
if st.button("Generate Fun Fact! π²", use_container_width=True):
|