This Python code is a Flask web application that uses the Bored API to suggest activities to users who are feeling bored. It presents a simple user interface that allows users to specify the type of activity they are interested in, as well as the number of participants they want to involve.
- Run the script.
- Navigate to http://localhost:5000/ in your web browser.
- Select the type of activity you are interested in from the dropdown menu or refresh the page for random activity.
- Enter the number of participants you want to involve in the activity.
- Click the "Submit" button to generate a suggested activity.