Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,6 +20,7 @@ from manabUtils import retrieve_chunks
|
|
| 20 |
from technicalDocCompliance import compliance_tech, compliance_tech_pdf
|
| 21 |
from MyRules import manualRules
|
| 22 |
from manabCQgenetaion import compliance_import_OEM
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
|
|
@@ -316,6 +317,7 @@ def check_compliance_tech(file_name):
|
|
| 316 |
def generateCqOemImport(file_name):
|
| 317 |
if file_name.name.endswith(".pdf"):
|
| 318 |
extraction_item_value_html, extraction_html, compliance_html, input_tokens ,output_tokens, total_tokens, result_dic = compliance_import_OEM(file_name, client)
|
|
|
|
| 319 |
dd=f"""
|
| 320 |
\n
|
| 321 |
<table>
|
|
@@ -330,6 +332,8 @@ def generateCqOemImport(file_name):
|
|
| 330 |
\n The compliance of the offer against our rules are as under. \n
|
| 331 |
{compliance_html}
|
| 332 |
\n
|
|
|
|
|
|
|
| 333 |
"""
|
| 334 |
yield dd
|
| 335 |
update_log("\n CQ-OEM-Import: "+datetime.now().isoformat()+"\n"+dd+"\n")
|
|
|
|
| 20 |
from technicalDocCompliance import compliance_tech, compliance_tech_pdf
|
| 21 |
from MyRules import manualRules
|
| 22 |
from manabCQgenetaion import compliance_import_OEM
|
| 23 |
+
from cq_domestic import domesticCQ
|
| 24 |
|
| 25 |
|
| 26 |
|
|
|
|
| 317 |
def generateCqOemImport(file_name):
|
| 318 |
if file_name.name.endswith(".pdf"):
|
| 319 |
extraction_item_value_html, extraction_html, compliance_html, input_tokens ,output_tokens, total_tokens, result_dic = compliance_import_OEM(file_name, client)
|
| 320 |
+
kkk=domesticCQ(extraction_item_value_html,result_dic)
|
| 321 |
dd=f"""
|
| 322 |
\n
|
| 323 |
<table>
|
|
|
|
| 332 |
\n The compliance of the offer against our rules are as under. \n
|
| 333 |
{compliance_html}
|
| 334 |
\n
|
| 335 |
+
The Domestic CQ is as under: \n\n\n
|
| 336 |
+
{kkk}
|
| 337 |
"""
|
| 338 |
yield dd
|
| 339 |
update_log("\n CQ-OEM-Import: "+datetime.now().isoformat()+"\n"+dd+"\n")
|