Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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 |
|