angela2882 commited on
Commit
4df5f93
·
verified ·
1 Parent(s): 8097c83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ os.environ["TOKENIZERS_PARALLELISM"] = "false"
9
  filename = "output_topic_details.txt" # Path to the file storing marine sustainability-specific details
10
  retrieval_model_name = 'output/sentence-transformer-finetuned/'
11
 
12
- openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
  system_message = "This is AquaGuard, a chatbot designed to raise awareness about ocean pollution and allow users to efficiently find volunteer opportunities."
15
  # Initial system message to set the behavior of the assistant
 
9
  filename = "output_topic_details.txt" # Path to the file storing marine sustainability-specific details
10
  retrieval_model_name = 'output/sentence-transformer-finetuned/'
11
 
12
+ openai.api_key = os.getenv("OPENAI_API_KEY") # Ensure the API key is read from the environment variable
13
 
14
  system_message = "This is AquaGuard, a chatbot designed to raise awareness about ocean pollution and allow users to efficiently find volunteer opportunities."
15
  # Initial system message to set the behavior of the assistant