Spaces:
Sleeping
Sleeping
fix tests
Browse files- pipline.py +1 -1
- test.py +1 -3
pipline.py
CHANGED
|
@@ -4,7 +4,7 @@ from langchain.prompts import load_prompt
|
|
| 4 |
import wikipedia
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
llm = OpenAI()
|
| 8 |
# save templates to a file
|
| 9 |
try_imply_template = """Question:
|
| 10 |
The user wrote me the following text, what is he trying to imply to me?
|
|
|
|
| 4 |
import wikipedia
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
llm = OpenAI(openai_api_key=os.environ.get("OPENAI_API_KEY"))
|
| 8 |
# save templates to a file
|
| 9 |
try_imply_template = """Question:
|
| 10 |
The user wrote me the following text, what is he trying to imply to me?
|
test.py
CHANGED
|
@@ -1,4 +1,2 @@
|
|
| 1 |
-
import subprocess
|
| 2 |
-
import model
|
| 3 |
import os
|
| 4 |
-
print(os.
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
+
print(os.environ.get("OPENAI_API_KEY"))
|