Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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
|