Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ def getblog(text_inp1,text_inp2):
|
|
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 |
|
49 |
prompt_template = PromptTemplate(
|
50 |
input_variables=["query"],
|
|
|
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,openai_api_key=text_inp2)
|
48 |
|
49 |
prompt_template = PromptTemplate(
|
50 |
input_variables=["query"],
|