alexander-lazarin commited on
Commit
6a10145
1 Parent(s): 14e7a92

Fix OPEN_AI_KEY import

Browse files
Files changed (2) hide show
  1. Fashion_MVP_v0_0_2.ipynb +1 -1
  2. app.py +1 -1
Fashion_MVP_v0_0_2.ipynb CHANGED
@@ -267,7 +267,7 @@
267
  " OPEN_AI_KEY = userdata.get('OPEN_AI_KEY')\n",
268
  " MJ_AUTH = userdata.get('MJ_AUTH')\n",
269
  "else:\n",
270
- " OPEN_AI_KEY = os.environ['API_TOKEN']\n",
271
  " MJ_AUTH = os.environ['MJ_AUTH']\n",
272
  "\n",
273
  "client = OpenAI(\n",
 
267
  " OPEN_AI_KEY = userdata.get('OPEN_AI_KEY')\n",
268
  " MJ_AUTH = userdata.get('MJ_AUTH')\n",
269
  "else:\n",
270
+ " OPEN_AI_KEY = os.environ['OPEN_AI_KEY']\n",
271
  " MJ_AUTH = os.environ['MJ_AUTH']\n",
272
  "\n",
273
  "client = OpenAI(\n",
app.py CHANGED
@@ -94,7 +94,7 @@ if IN_COLAB:
94
  OPEN_AI_KEY = userdata.get('OPEN_AI_KEY')
95
  MJ_AUTH = userdata.get('MJ_AUTH')
96
  else:
97
- OPEN_AI_KEY = os.environ['API_TOKEN']
98
  MJ_AUTH = os.environ['MJ_AUTH']
99
 
100
  client = OpenAI(
 
94
  OPEN_AI_KEY = userdata.get('OPEN_AI_KEY')
95
  MJ_AUTH = userdata.get('MJ_AUTH')
96
  else:
97
+ OPEN_AI_KEY = os.environ['OPEN_AI_KEY']
98
  MJ_AUTH = os.environ['MJ_AUTH']
99
 
100
  client = OpenAI(