Manith Marapperuma πŸ‘Ύ commited on
Commit
39bc058
Β·
1 Parent(s): afb3dbb

modified app.py

Browse files
Files changed (2) hide show
  1. app.py +11 -4
  2. 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("🎈 Jokerrr - AI Fun Facts Generator")
 
 
 
 
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,2,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