Skip to content

Commit

Permalink
Merge pull request #4 from Charvi-14/main
Browse files Browse the repository at this point in the history
Update app.py - proper API key Handling
  • Loading branch information
Amna-Hassan04 authored Oct 2, 2024
2 parents 2ce300e + 8326e7d commit f41fb1f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f41fb1f

Please sign in to comment.