Ahmed-14 commited on
Commit
084810c
1 Parent(s): 10db749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
 
2
  import os
3
- Open_AI_Key = os.environ['Open_AI_Key']
4
  HF_Key = os.environ['HF_Key']
5
  import openai
6
  import json
@@ -48,7 +48,7 @@ class Chatbot:
48
 
49
  def __init__(self, index):
50
  self.index = index
51
- openai.api_key = Open_AI_Key
52
  self.chat_history = []
53
 
54
  QA_PROMPT_TMPL = (
 
1
 
2
  import os
3
+ OPENAI_API_KEY = os.environ['Open_AI_Key']
4
  HF_Key = os.environ['HF_Key']
5
  import openai
6
  import json
 
48
 
49
  def __init__(self, index):
50
  self.index = index
51
+ openai.api_key = OPENAI_API_KEY
52
  self.chat_history = []
53
 
54
  QA_PROMPT_TMPL = (