Spaces:
Runtime error
Runtime error
File size: 2,482 Bytes
9d1d562 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import streamlit as st
import random
# List of jokes
jokes = [
"π©Έππ Why did the nurse need a red pen at work? In case she needed to draw blood.",
"π΄π¨βπ³π€ Did you hear about the new restaurant called Karma? There's no menu β you get what you deserve.",
"πβπͺ Why don't skeletons fight each other? They don't have the guts.",
"π©Έππ¨ββοΈ Why did the doctor always carry a red pen? In case he needed to draw some blood.",
"πͺποΈββοΈπ΄ I'm not feeling very work-out-y today. I think I might have a case of gymnesia.",
"βοΈβοΈπ· Why did the hipster get sick? He drank his coffee before it was cool.",
"π¨βπΎππ Did you hear about the scarecrow who won an award? Because he was outstanding in his field of medicine.",
"π°π΅π¬ Did you hear about the guy who invented Lifesavers? He made a mint.",
"π»π»πΌ Why don't ghosts use elevators? They lift spirits naturally.",
"π₯¬πββοΈπ¦ 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.",
"ππ¨ββοΈπ· Why did the banana go to the doctor? Because it wasn't peeling well.",
"ππ¬οΈπ« I tried to start a hot air balloon club for people with asthma. It never really took off.",
"π¨ββοΈπ»π What do you call a doctor who fixes websites? A URL-ologist.",
"π¦ π¬π Why did the germ cross the microscope? To get to the other slide.",
"ππ©π Did you hear about the optometrist who fell into his lens grinder? He made a spectacle of himself.",
"π€π§π What's the best way to cure a headache? Put your head in a vise and tighten it until the headache goes away.",
"πͺποΈββοΈπ€ͺ I think I'm getting a cold. I've been coughing so much that my abs have a six-pack.",
"π§ββοΈππ± Why did the nurse refuse to give the vampire a shot? He might have had a bat reaction.",
"π₯π¦΅π₯ Why did the man with a broken leg cross the road? To get to the other side of the hospital.",
"πͺππ₯ Did you hear about the guy who invented the knock-knock joke? He won the 'No-bell' prize."
]
# Add sliders to adjust the number of jokes to display and the size of the font
num_jokes = st.sidebar.slider("Number of jokes to display", 1, len(jokes), 5)
font_size = st.sidebar.slider("Font size", 12, 36, 24)
# Shuffle the list of
|