Commit
·
665dc6a
1
Parent(s):
a578eb1
bugs fixes
Browse files- src/model.py +2 -0
- src/pipelines.py +3 -0
src/model.py
CHANGED
@@ -37,6 +37,8 @@ class Pixtral:
|
|
37 |
]
|
38 |
|
39 |
outputs = self.llm.chat(messages, sampling_params=self.sampling_params)
|
|
|
|
|
40 |
|
41 |
return outputs[0].outputs[0].text
|
42 |
|
|
|
37 |
]
|
38 |
|
39 |
outputs = self.llm.chat(messages, sampling_params=self.sampling_params)
|
40 |
+
print("OUTPUT")
|
41 |
+
print(outputs[0].outputs[0].text)
|
42 |
|
43 |
return outputs[0].outputs[0].text
|
44 |
|
src/pipelines.py
CHANGED
@@ -144,6 +144,9 @@ class InvoiceGenerator:
|
|
144 |
|
145 |
print("Detailed Damage Description:", detailed_damage_description)
|
146 |
|
|
|
|
|
|
|
147 |
generated_invoice = self.model.generate_message_from_image(
|
148 |
GENERATE_INVOICE_PROMPT(invoice_info, detailed_damage_description), image_path
|
149 |
).replace("```markdown", "").replace("```", "")
|
|
|
144 |
|
145 |
print("Detailed Damage Description:", detailed_damage_description)
|
146 |
|
147 |
+
print("PROMPT")
|
148 |
+
print(GENERATE_INVOICE_PROMPT(invoice_info, detailed_damage_description))
|
149 |
+
|
150 |
generated_invoice = self.model.generate_message_from_image(
|
151 |
GENERATE_INVOICE_PROMPT(invoice_info, detailed_damage_description), image_path
|
152 |
).replace("```markdown", "").replace("```", "")
|