Spaces:
Runtime error
Runtime error
ryanrwatkins
commited on
Commit
Β·
7c45b28
1
Parent(s):
5b77bb9
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,8 @@ from langchain.chains.question_answering import load_qa_chain
|
|
35 |
#))
|
36 |
|
37 |
|
|
|
|
|
38 |
|
39 |
|
40 |
|
@@ -84,8 +86,7 @@ def on_prompt_template_change_description(prompt_template):
|
|
84 |
|
85 |
def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
|
86 |
|
87 |
-
|
88 |
-
os.environ["OPENAI_API_KEY"] = os.environ['openai_key']
|
89 |
|
90 |
# load in all the files
|
91 |
#path = './files'
|
|
|
35 |
#))
|
36 |
|
37 |
|
38 |
+
openai.api_key = os.environ['openai_key']
|
39 |
+
os.environ["OPENAI_API_KEY"] = os.environ['openai_key']
|
40 |
|
41 |
|
42 |
|
|
|
86 |
|
87 |
def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
|
88 |
|
89 |
+
|
|
|
90 |
|
91 |
# load in all the files
|
92 |
#path = './files'
|