From 8326e7d00207d132ed0061534bb5715204ceb506 Mon Sep 17 00:00:00 2001 From: charvi arora <107393948+Charvi-14@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:12:24 +0530 Subject: [PATCH 1/6] Update app.py Add support for environment variables using a .env file Using a .env File (Recommended for Development): - Created a .env file in the root directory to manage environment variables for development. - Added CLAUDE_API_KEY to the .env file. Instructions: 1. Add your environment variable to the file: CLAUDE_API_KEY=your_api_key_here 2. Install the python-dotenv package to read the .env file in your Python script: pip install python-dotenv 3. Updated the script to load the environment variables with the following code --- app.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 89deb08..e75bbe1 100644 --- a/app.py +++ b/app.py @@ -5,14 +5,18 @@ import requests, random from streamlit_lottie import st_lottie from streamlit_option_menu import option_menu - +import os +from dotenv import load_dotenv #AI Integration import anthropic -# Retrieve API key from Hugging Face secrets -claude_api_key = "api-key" +#Changes made by --Charvi Arora +#Added security +# Load environment variables from .env file +load_dotenv() +# Retrieve the API key +claude_api_key = os.getenv("CLAUDE_API_KEY") -# Initialize ClaudeAI client client = anthropic.Client(api_key=claude_api_key) def anxiety_management_guide(mood, feeling_description, current_stress_level, recent_events): From d0db67a451dc0582d5b33e1862ee021b94d5ed0f Mon Sep 17 00:00:00 2001 From: Kiran Baliga B <68471170+KiranBaliga@users.noreply.github.com> Date: Tue, 1 Oct 2024 23:21:12 +0530 Subject: [PATCH 2/6] Create greetings.yml --- .github/workflows/greetings.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..3412acf --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!" + pr-message: " 🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better" From a87f6f736c423c5f00d5d6e36456463d83a2c5f9 Mon Sep 17 00:00:00 2001 From: Kiran Baliga B <68471170+KiranBaliga@users.noreply.github.com> Date: Wed, 2 Oct 2024 06:57:45 +0530 Subject: [PATCH 3/6] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a076e8..0e34fb9 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,10 @@ To set up SereniFi on your local machine, follow these steps: ## 🌟 Contributors -| ![Amna Hassan](https://avatars.githubusercontent.com/Amna-Hassan04?s=50) | ![Anushka Pote](https://avatars.githubusercontent.com/Anushka-Pote?s=50) | ![K. Madhuri](https://avatars.githubusercontent.com/pearll12?s=50) | ![Pearl V](https://avatars.githubusercontent.com/madhurik04?s=50) | +| ![Amna Hassan](https://avatars.githubusercontent.com/Amna-Hassan04?s=50) | ![Anushka Pote](https://avatars.githubusercontent.com/Anushka-Pote?s=50) | ![K. Madhuri](https://avatars.githubusercontent.com/pearll12?s=50) | ![Pearl V](https://avatars.githubusercontent.com/madhurik04?s=50) | ![Kiran Baliga](https://avatars.githubusercontent.com/KiranBaliga?s=50) | |:--:|:--:|:--:|:--:| | [Amna Hassan](https://github.com/Amna-Hassan04) | [Anushka Pote](https://github.com/username2) | [K. Madhuri](https://github.com/username3) | [Pearl V](https://github.com/username4) | +[Kiran Baliga](https://github.com/KiranBaliga) --- From 4b89f995d8469a2c602e96a9928f22046aab739a Mon Sep 17 00:00:00 2001 From: Kiran Baliga B <68471170+KiranBaliga@users.noreply.github.com> Date: Wed, 2 Oct 2024 06:59:35 +0530 Subject: [PATCH 4/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0e34fb9..10f7803 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ To set up SereniFi on your local machine, follow these steps: ## 🌟 Contributors | ![Amna Hassan](https://avatars.githubusercontent.com/Amna-Hassan04?s=50) | ![Anushka Pote](https://avatars.githubusercontent.com/Anushka-Pote?s=50) | ![K. Madhuri](https://avatars.githubusercontent.com/pearll12?s=50) | ![Pearl V](https://avatars.githubusercontent.com/madhurik04?s=50) | ![Kiran Baliga](https://avatars.githubusercontent.com/KiranBaliga?s=50) | + |:--:|:--:|:--:|:--:| | [Amna Hassan](https://github.com/Amna-Hassan04) | [Anushka Pote](https://github.com/username2) | [K. Madhuri](https://github.com/username3) | [Pearl V](https://github.com/username4) | [Kiran Baliga](https://github.com/KiranBaliga) From 73a20acc70feef8a50d8586d379518bf3fc20bb2 Mon Sep 17 00:00:00 2001 From: Kiran Baliga B <68471170+KiranBaliga@users.noreply.github.com> Date: Wed, 2 Oct 2024 07:24:55 +0530 Subject: [PATCH 5/6] Update greetings.yml --- .github/workflows/greetings.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 3412acf..0adac1a 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,6 +1,7 @@ name: Greetings -on: [pull_request_target, issues] +on: + [pull_request_target, issues] jobs: greeting: @@ -9,8 +10,16 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: "👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!" - pr-message: " 🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better" + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: | + 👋 Thank you! Welcome to the project! Please follow these guidelines for smooth collaboration: + 1. After completing a task, add your name and details to the Contributors Table/List. + 2. Attach relevant screenshots or videos of your contribution for transparency. + 3. Tasks are assigned on a first-come, first-served basis. + - Avoid spamming requests for already-assigned tasks. + - Respect the queue and wait for new tasks. + 4. **Propose New Ideas**: Discuss new features or suggestions in the "Ideas" channel before starting work. + pr-message: | + 🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better. From 51e5d3c7ac23e36ff61a6899a128c6b6e9cae920 Mon Sep 17 00:00:00 2001 From: Kiran Baliga B <68471170+KiranBaliga@users.noreply.github.com> Date: Wed, 2 Oct 2024 07:40:26 +0530 Subject: [PATCH 6/6] Update greetings.yml --- .github/workflows/greetings.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 0adac1a..806b00b 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -23,3 +23,11 @@ jobs: 4. **Propose New Ideas**: Discuss new features or suggestions in the "Ideas" channel before starting work. pr-message: | 🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better. + + Please follow these guidelines for smooth collaboration: + 1. After completing a task, add your name and details to the Contributors Table/List. + 2. Attach relevant screenshots or videos of your contribution for transparency. + 3. Tasks are assigned on a first-come, first-served basis. + - Avoid spamming requests for already-assigned tasks. + - Respect the queue and wait for new tasks. + 4. **Propose New Ideas**: Discuss new features or suggestions in the "Ideas" channel before starting work.