avreymi commited on
Commit
6b68ade
·
1 Parent(s): dedbd51

test pipline

Browse files
Files changed (3) hide show
  1. pipline.py +5 -0
  2. test.py +2 -2
  3. 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(model.model("Hello, world!, please generate some text for me."))
 
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
- # python pipline.py
3
- # python model.py
 
 
1
  echo "running tests"
2
+ python test.py
3
+ python pipline.py
4
+ # python model.py