This application:
- Uses Flask for rendering the web pages
- Has a form where users can input a city
- Submits the city to an OpenAI API endpoint to get a travel itinerary
- Displays the itinerary with checkboxes for each activity
- Includes error handling and loading states
- Uses a clean, modern design with CSS
To use this application:
-
Install the required packages:
pip install flask requests
-
Set up your environment variables:
export FLASK_APP=your_app.py -
Run the application:
flask run
-
Visit http://localhost:5000 in your browser to use the travel assistant.
-
Install the Foundry Local SDK
-
Add calls to Foundry Manager to download and cache models