Akshint47 commited on
Commit
b10aaf3
·
verified ·
1 Parent(s): b849792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -25,8 +25,7 @@ from langchain.memory import ConversationBufferMemory
25
  - Copy the Secret Key for your use.
26
  """
27
 
28
- OPENAI_API_KEY="sk-proj-Dmw1BXzkMeDJ4uSGSRV8T3BlbkFJdAztwG0rPoPJMX2EogD1"
29
- os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
30
 
31
  template = """Meet Riya, your youthful and witty personal assistant! At 21 years old, she's full of energy and always eager to help. Riya's goal is to assist you with any questions or problems you might have. Her enthusiasm shines through in every response, making interactions with her enjoyable and engaging.
32
  {chat_history}
 
25
  - Copy the Secret Key for your use.
26
  """
27
 
28
+ openai_key = os.environ.get("OPENAI_API_KEY")
 
29
 
30
  template = """Meet Riya, your youthful and witty personal assistant! At 21 years old, she's full of energy and always eager to help. Riya's goal is to assist you with any questions or problems you might have. Her enthusiasm shines through in every response, making interactions with her enjoyable and engaging.
31
  {chat_history}