Spaces:
Sleeping
Sleeping
Download app.py from dadtechsol/dad-quotegenerator: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/spaces/dadtechsol/dad-quotegenerator/resolve/main/app.py
- Command line
-
hf download hf://spaces/dadtechsol/dad-quotegenerator/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dadtechsol/dad-quotegenerator/resolve/main/app.py
745 Bytes
| import streamlit as st | |
| import random | |
| st.set_page_config(page_title="Random Quote Generator", page_icon="π‘") | |
| st.title("π‘ Random Quote Generator") | |
| # A small list of quotes | |
| quotes = [ | |
| "The best way to predict the future is to invent it. β Alan Kay", | |
| "Success usually comes to those who are too busy to be looking for it. β Henry David Thoreau", | |
| "Don't watch the clock; do what it does. Keep going. β Sam Levenson", | |
| "Whether you think you can or you think you can't, you're right. β Henry Ford", | |
| "Simplicity is the ultimate sophistication. β Leonardo da Vinci", | |
| "In the middle of every difficulty lies opportunity. β Albert Einstein" | |
| ] | |
| if st.button("Generate Quote"): | |
| st.info(random.choice(quotes)) | |