Spaces:
Sleeping
Sleeping
test pipline
Browse files- pipline.py +5 -0
- test.py +2 -2
- tests.sh +3 -2
pipline.py
CHANGED
@@ -28,3 +28,8 @@ connection_between_terms_template = PromptTemplate(
|
|
28 |
|
29 |
chain_TI = LLMChain(prompt=TI_prompt, llm=llm)
|
30 |
chain_CC = LLMChain(prompt=connection_between_terms_template, llm=llm)
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
chain_TI = LLMChain(prompt=TI_prompt, llm=llm)
|
30 |
chain_CC = LLMChain(prompt=connection_between_terms_template, llm=llm)
|
31 |
+
|
32 |
+
|
33 |
+
if __name__ == "__main__":
|
34 |
+
print(chain_TI.run("I am happy"))
|
35 |
+
print(chain_CC.run(["I am sad", "I am happy"]))
|
test.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
import subprocess
|
2 |
import model
|
3 |
-
|
4 |
-
print(
|
|
|
1 |
import subprocess
|
2 |
import model
|
3 |
+
import os
|
4 |
+
print(os.getenv("OPENAI_API_KEY"))
|
tests.sh
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
echo "running tests"
|
2 |
-
|
3 |
-
|
|
|
|
1 |
echo "running tests"
|
2 |
+
python test.py
|
3 |
+
python pipline.py
|
4 |
+
# python model.py
|