Spaces:
Build error
Build error
Update app.py
Browse files
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={"
|
| 12 |
)
|
| 13 |
template = """
|
| 14 |
-
Compare {orignal_source} and {
|
| 15 |
-
If {orignal_source} and {
|
| 16 |
-
compare {orignal_source} and {
|
| 17 |
|
| 18 |
-
If the details of the product {product} in {orignal_source} and {
|
| 19 |
of the product on the site are correct.
|
| 20 |
-
If details of product {product} in {orignal_source} and {
|
| 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(
|