arnavpathak commited on
Commit
a1390eb
·
verified ·
1 Parent(s): f16ad5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -8,16 +8,16 @@ def GetLlamaResponse(orignal_source, scraped_source, product):
8
  llm = CTransformers(
9
  model_type="llama",
10
  model="llama-2-7b-chat.ggmlv3.q8_0.bin",
11
- config={"max_new_tokens": 256, "temperature": 0.01},
12
  )
13
  template = """
14
- Compare {orignal_source} and {scrapped_source} to check if the details of the product {product} are same or not.
15
- If {orignal_source} and {scrapped_source} are comparing different products, or you are not able to
16
- compare {orignal_source} and {scrapped_source}, then give the output could not check for details and apologise .
17
 
18
- If the details of the product {product} in {orignal_source} and {scrapped_source} are same then tell the user that the details
19
  of the product on the site are correct.
20
- If details of product {product} in {orignal_source} and {scrapped_source} are different tell the user that the details on the
21
  site are not correct.
22
  """
23
  prompt = PromptTemplate(
 
8
  llm = CTransformers(
9
  model_type="llama",
10
  model="llama-2-7b-chat.ggmlv3.q8_0.bin",
11
+ config={"temperature": 0.01},
12
  )
13
  template = """
14
+ Compare {orignal_source} and {scraped_source} to check if the details of the product {product} are same or not.
15
+ If {orignal_source} and {scraped_source} are comparing different products, or you are not able to
16
+ compare {orignal_source} and {scraped_source}, then give the output could not check for details and apologise .
17
 
18
+ If the details of the product {product} in {orignal_source} and {scraped_source} are same then tell the user that the details
19
  of the product on the site are correct.
20
+ If details of product {product} in {orignal_source} and {scraped_source} are different tell the user that the details on the
21
  site are not correct.
22
  """
23
  prompt = PromptTemplate(