roseyai commited on
Commit
796f1d5
·
1 Parent(s): 3efd4fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,7 +32,7 @@ from langchain.prompts import PromptTemplate
32
 
33
  from polly_utils import PollyVoiceData, NEURAL_ENGINE
34
 
35
- openai_api_key_textbox = os.environ["OPENAI_API_KEY"]
36
 
37
  news_api_key = os.environ["NEWS_API_KEY"]
38
  tmdb_bearer_token = os.environ["TMDB_BEARER_TOKEN"]
@@ -212,7 +212,7 @@ def set_openai_api_key(api_key):
212
  """
213
  print("set openai api")
214
  print(openai_api_key_textbox)
215
- api_key = os.environ["OPENAI_API_KEY"]
216
  print("api key: "+ api_key)
217
  if api_key and api_key.startswith("sk-") and len(api_key) > 50:
218
  print("if statement passed")
@@ -290,7 +290,7 @@ class ChatWrapper:
290
 
291
  def __init__(self):
292
  print("init")
293
- set_openai_api_key(os.environ["OPENAI_API_KEY"])
294
  print("api key 2: " + openai_api_key_textbox)
295
  self.lock = Lock()
296
 
 
32
 
33
  from polly_utils import PollyVoiceData, NEURAL_ENGINE
34
 
35
+ openai_api_key_textbox = "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"
36
 
37
  news_api_key = os.environ["NEWS_API_KEY"]
38
  tmdb_bearer_token = os.environ["TMDB_BEARER_TOKEN"]
 
212
  """
213
  print("set openai api")
214
  print(openai_api_key_textbox)
215
+ api_key = "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"
216
  print("api key: "+ api_key)
217
  if api_key and api_key.startswith("sk-") and len(api_key) > 50:
218
  print("if statement passed")
 
290
 
291
  def __init__(self):
292
  print("init")
293
+ set_openai_api_key("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")
294
  print("api key 2: " + openai_api_key_textbox)
295
  self.lock = Lock()
296