Skip to content

This is a website where users can easily plan their trip by entering their length of stay and number of days, with the type of trip as an optional value. This platform aims to assist the community in finding travel-itineraries with ease.

Notifications You must be signed in to change notification settings

prayagnshah/travel-advisory

Repository files navigation

Travel Companion

Live version of the app is available at Travel Companion

Description

This Streamlit mini-app generates Travel itinerary for a given city or country according to the type of the travel (solo, trekking, religious, etc.) and number of days. This app tries to use text-davinci-003 model to generate the itinerary. Furthermore, just to avoid the bots users will be able to generate the itinerary for 10 times per day and can be increased by reaching out to me by Email.

Using Dockerfile

This Dockerfile will allow you to easily run the application by executing with one line of code. Follow the steps below:

  1. Open your command line interface.
  2. Run the following command to start the container and expose port 8501:
    docker run -p 8501:8501 travel-advisory
    
  3. If you are using Windows, open your web browser and navigate to http://localhost:8501/ to access the application.

Running Locally

  1. Clone the repository and install the requirements by typing: pip install -r requirements.txt

  2. Create the account on OpenAI and get the API key.

  3. Create the account on Upstash to store the user's data and get the API key. This will be used to store the results of the user's query and will not forward the same query to the OpenAI API.

  4. Create the account on Streamlit to deploy the app. Store the API keys in the .env file as follows. Try editing the file .example.env to .env once the necessary information is stored.

  5. Run the app through the terminal by typing: streamlit run app.py

Purpose

The purpose of this travel itinerary is to provide a helpful resource for individuals seeking to plan their trip to a specific destination. This itinerary was created with the intention of benefiting the community and ensuring that everyone can take advantage of it.

We believe that travel planning should be accessible and stress-free, and we hope that this itinerary will help individuals plan their trip with ease. We strongly welcome any feedback or suggestions to improve this resource and make it even more helpful for travelers.

You can be reached out to me by Gmail or LinkedIn.

Powered by

This example is powered by the following services:

  • OpenAI (AI API)
  • Upstash (Redis Database)
  • Streamlit (App Deployment)

About

This is a website where users can easily plan their trip by entering their length of stay and number of days, with the type of trip as an optional value. This platform aims to assist the community in finding travel-itineraries with ease.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published