hra commited on
Commit
c80b6ae
·
1 Parent(s): 466bb4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,6 +6,7 @@ import time
6
  import os
7
  import datetime
8
  from datetime import datetime
 
9
 
10
  #print('for update')
11
 
@@ -41,7 +42,7 @@ def getblog(text_inp1,text_inp2):
41
  print(text_inp1,text_inp2)
42
  print(datetime.today().strftime("%d-%m-%Y"))
43
  if text_inp2!='':
44
- OPEN_API_TOKEN = text_inp2
45
 
46
  llm = OpenAI(temperature=0)
47
 
 
6
  import os
7
  import datetime
8
  from datetime import datetime
9
+ import openai
10
 
11
  #print('for update')
12
 
 
42
  print(text_inp1,text_inp2)
43
  print(datetime.today().strftime("%d-%m-%Y"))
44
  if text_inp2!='':
45
+ openai.api_key = text_inp2
46
 
47
  llm = OpenAI(temperature=0)
48