izammohammed commited on
Commit
3a7461f
1 Parent(s): aca2a4f

Update llama_call.py

Browse files
Files changed (1) hide show
  1. llama_call.py +1 -6
llama_call.py CHANGED
@@ -4,7 +4,7 @@ from langchain.prompts import PromptTemplate
4
  from langchain_community.llms import CTransformers
5
  from langchain.chains import RetrievalQA
6
  from dotenv import load_dotenv
7
- from src.prompt import prompt_template
8
  import os
9
 
10
  load_dotenv()
@@ -48,8 +48,3 @@ qa = RetrievalQA.from_chain_type(
48
  def llama_call(input):
49
  result = qa.invoke({"query": input})
50
  return str(result["result"])
51
-
52
-
53
- if __name__ == "__main__":
54
- msg = "If a previous owner of a land had allowed a neighbour or neighbour to walk or drive over his land in a shortcut and this has been going on for say a decade or so can I as the new owner stop them now from using the shortcut?"
55
- print(f"response: {llama_call(msg)}")
 
4
  from langchain_community.llms import CTransformers
5
  from langchain.chains import RetrievalQA
6
  from dotenv import load_dotenv
7
+ from prompt import prompt_template
8
  import os
9
 
10
  load_dotenv()
 
48
  def llama_call(input):
49
  result = qa.invoke({"query": input})
50
  return str(result["result"])