awacke1 commited on
Commit
9d1d562
Β·
1 Parent(s): 73bf5b0

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -0
app.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import random
3
+
4
+ # List of jokes
5
+ jokes = [
6
+ "πŸ©ΈπŸ’‰πŸ“ Why did the nurse need a red pen at work? In case she needed to draw blood.",
7
+ "πŸ΄πŸ‘¨β€πŸ³πŸ‘€ Did you hear about the new restaurant called Karma? There's no menu – you get what you deserve.",
8
+ "πŸ’€βŒπŸ’ͺ Why don't skeletons fight each other? They don't have the guts.",
9
+ "πŸ©ΈπŸ’‰πŸ‘¨β€βš•οΈ Why did the doctor always carry a red pen? In case he needed to draw some blood.",
10
+ "πŸ’ͺπŸ‹οΈβ€β™‚οΈπŸ˜΄ I'm not feeling very work-out-y today. I think I might have a case of gymnesia.",
11
+ "β˜•οΈβ„οΈπŸ˜· Why did the hipster get sick? He drank his coffee before it was cool.",
12
+ "πŸ‘¨β€πŸŒΎπŸ†πŸ‘ Did you hear about the scarecrow who won an award? Because he was outstanding in his field of medicine.",
13
+ "πŸ’°πŸ’΅πŸ¬ Did you hear about the guy who invented Lifesavers? He made a mint.",
14
+ "πŸ‘»πŸ‘»πŸ”Ό Why don't ghosts use elevators? They lift spirits naturally.",
15
+ "πŸ₯¬πŸƒβ€β™€οΈπŸ¦– I'm on a health kick – I'm drinking kale smoothies and jogging every day. It's exhausting – I'm starting to feel like a vegetarian T-Rex.",
16
+ "πŸŒπŸ‘¨β€βš•οΈπŸ˜· Why did the banana go to the doctor? Because it wasn't peeling well.",
17
+ "🎈🌬️🚫 I tried to start a hot air balloon club for people with asthma. It never really took off.",
18
+ "πŸ‘¨β€βš•οΈπŸ’»πŸŒ What do you call a doctor who fixes websites? A URL-ologist.",
19
+ "πŸ¦ πŸ”¬πŸ’‰ Why did the germ cross the microscope? To get to the other slide.",
20
+ "πŸ‘“πŸŽ©πŸ‡ Did you hear about the optometrist who fell into his lens grinder? He made a spectacle of himself.",
21
+ "πŸ€•πŸ”§πŸ˜– What's the best way to cure a headache? Put your head in a vise and tighten it until the headache goes away.",
22
+ "πŸ’ͺπŸ‹οΈβ€β™‚οΈπŸ€ͺ I think I'm getting a cold. I've been coughing so much that my abs have a six-pack.",
23
+ "πŸ§›β€β™‚οΈπŸ’‰πŸ˜± Why did the nurse refuse to give the vampire a shot? He might have had a bat reaction.",
24
+ "πŸ₯🦡πŸ₯ Why did the man with a broken leg cross the road? To get to the other side of the hospital.",
25
+ "πŸšͺπŸŽ‰πŸ₯‡ Did you hear about the guy who invented the knock-knock joke? He won the 'No-bell' prize."
26
+ ]
27
+
28
+ # Add sliders to adjust the number of jokes to display and the size of the font
29
+ num_jokes = st.sidebar.slider("Number of jokes to display", 1, len(jokes), 5)
30
+ font_size = st.sidebar.slider("Font size", 12, 36, 24)
31
+
32
+ # Shuffle the list of