Manith Marapperuma πΎ
commited on
Commit
Β·
39bc058
1
Parent(s):
afb3dbb
modified app.py
Browse files- app.py +11 -4
- img/batman.png +0 -0
app.py
CHANGED
@@ -19,7 +19,11 @@ st.set_page_config(
|
|
19 |
)
|
20 |
|
21 |
# Add a title to the app
|
22 |
-
st.title("π
|
|
|
|
|
|
|
|
|
23 |
|
24 |
# Initialize LLM
|
25 |
@st.cache_resource
|
@@ -66,13 +70,16 @@ if 'fact_counter' not in st.session_state:
|
|
66 |
main_container = st.container()
|
67 |
|
68 |
with main_container:
|
69 |
-
st.write("Click the button below to get AI-generated fun facts! π")
|
70 |
-
|
71 |
# Create columns for center alignment
|
72 |
-
col1, col2, col3 = st.columns([1,
|
|
|
|
|
73 |
|
74 |
# Put the button in the middle column
|
75 |
with col2:
|
|
|
|
|
|
|
76 |
if st.button("Generate Fun Fact! π²", use_container_width=True):
|
77 |
try:
|
78 |
# Show loading message
|
|
|
19 |
)
|
20 |
|
21 |
# Add a title to the app
|
22 |
+
st.title("π AI Fun Facts Generator")
|
23 |
+
col1, col2, col3 = st.columns([1,2,1])
|
24 |
+
with col2:
|
25 |
+
st.image("img/batman.png",
|
26 |
+
width=400)
|
27 |
|
28 |
# Initialize LLM
|
29 |
@st.cache_resource
|
|
|
70 |
main_container = st.container()
|
71 |
|
72 |
with main_container:
|
|
|
|
|
73 |
# Create columns for center alignment
|
74 |
+
col1, col2, col3 = st.columns([1,3,1])
|
75 |
+
|
76 |
+
|
77 |
|
78 |
# Put the button in the middle column
|
79 |
with col2:
|
80 |
+
st.write("Click the button below to get AI-generated fun facts! π")
|
81 |
+
|
82 |
+
|
83 |
if st.button("Generate Fun Fact! π²", use_container_width=True):
|
84 |
try:
|
85 |
# Show loading message
|
img/batman.png
ADDED
![]() |