Commit
·
7590976
1
Parent(s):
c6179a2
changed prompt pixtral
Browse files- src/pipelines.py +1 -1
- src/prompts.py +4 -1
src/pipelines.py
CHANGED
@@ -128,7 +128,7 @@ class InvoiceGenerator:
|
|
128 |
image_path=image_path,
|
129 |
return_only_path=False,
|
130 |
damage_description=damage_description,
|
131 |
-
k=
|
132 |
use_granular_invoice=use_granular_invoice
|
133 |
)
|
134 |
invoice_info = invoice_info[0]
|
|
|
128 |
image_path=image_path,
|
129 |
return_only_path=False,
|
130 |
damage_description=damage_description,
|
131 |
+
k=8,
|
132 |
use_granular_invoice=use_granular_invoice
|
133 |
)
|
134 |
invoice_info = invoice_info[0]
|
src/prompts.py
CHANGED
@@ -47,7 +47,10 @@ If the provided photo is not a photo of a car accident or a damaged car (the pic
|
|
47 |
If a car is completely destroyed and it is not possible to repair it, you must write "Irrelevant." and nothing else and stop following the instructions.
|
48 |
Otherwise, provide a brief description of the damage.
|
49 |
The description should include the type of damage and the affected area of the vehicle. Pay special attention to the parts of the vehicle that are damaged. Be concise and specific, focusing on the visible damage in the image.
|
50 |
-
Write no more than 1
|
|
|
|
|
|
|
51 |
Do not add any additional information beyond the visible damage in the image and any comments.
|
52 |
"""
|
53 |
|
|
|
47 |
If a car is completely destroyed and it is not possible to repair it, you must write "Irrelevant." and nothing else and stop following the instructions.
|
48 |
Otherwise, provide a brief description of the damage.
|
49 |
The description should include the type of damage and the affected area of the vehicle. Pay special attention to the parts of the vehicle that are damaged. Be concise and specific, focusing on the visible damage in the image.
|
50 |
+
Write no more than 1 sentence describing the damage in detail.
|
51 |
+
Do not write general details about the car, only the damaged parts.
|
52 |
+
Do not write introductory words like "the picture shows" etc., only information about damages, their location, and their severity.
|
53 |
+
If you list the damaged parts, sort them in order which part is damaged the most.
|
54 |
Do not add any additional information beyond the visible damage in the image and any comments.
|
55 |
"""
|
56 |
|