Welcome to the Pilgrim project repository!
Pilgrim is an AI-powered chatbot designed to provide accessible and stigma-free mental health support. With Pilgrim, users can access confidential and personalized assistance from a virtual psychiatrist anytime, anywhere. By breaking down barriers to seeking help, Pilgrim aims to make mental health support more accessible and inclusive for all.
The App folder contains the code for the Pilgrim mobile application. Built with Flutter, the Pilgrim app provides users with a convenient way to access Pilgrim on their mobile devices.
The Website folder contains the code for the Pilgrim website. The website is built using a Flask backend and hosted on Google App Engine. It offers users another platform to access Pilgrim and seek support.
To get started with Pilgrim, follow these steps:
- Clone this repository to your local machine.
- Navigate to the
Appfolder to work with the mobile application code, or navigate to theWebsitefolder to work with the website code.
To run the Pilgrim mobile application, follow these steps:
-
Ensure you have Flutter installed on your system. If not, you can follow the instructions on the Flutter website to install it.
-
Navigate to the
Appfolder in your terminal or command prompt. -
Run the following command to ensure all dependencies are installed:
flutter pub get -
Once the dependencies are installed, you can launch the app on an emulator or a connected device by running:
flutter runThis command will build and launch the Pilgrim mobile application on your emulator or device.
-
Alternatively, you can build the app for specific platforms (e.g., Android or iOS) using the following commands:
- For Android:
flutter build apk - For iOS:
flutter build ios
After building, you can install the app on your device manually or using the appropriate deployment method for each platform.
- For Android:
To run the Pilgrim website locally, follow these steps:
-
Ensure you have Python and Flask installed on your system. If not, you can install Flask and other required dependencies using pip:
pip install -r requirements.txtThis command will install all the required dependencies listed in the
requirements.txtfile. -
Navigate to the
Websitefolder in your terminal or command prompt. -
Run the following command to start the Flask development server:
flask runThis command will start the Flask server, and you can access the website by visiting
http://localhost:5000in your web browser. -
Alternatively, you can deploy the Flask website to a production server following the deployment instructions provided in the Flask documentation.
If you plan to run the Pilgrim website locally, you'll need to set up application-default credentials. Follow these steps to add application-default credentials:
-
Install the Google Cloud SDK if you haven't already. You can download it from the Google Cloud SDK Documentation.
-
Authenticate the Google Cloud SDK by running the following command and following the authentication prompts:
gcloud auth application-default login -
After successful authentication, application-default credentials will be added to your environment, and you'll be able to make calls to Vertex AI services from the Pilgrim website.
Note on Deprecated Methods Please be aware that the Vertex AI methods used in this project have been deprecated by Google. For future development or contributions, these API calls will need to be updated to the latest Google Cloud Vertex AI SDK versions to ensure functionality.

