Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -336,7 +336,7 @@ def generateCqOemImport(file_name):
|
|
| 336 |
{kkk}
|
| 337 |
"""
|
| 338 |
yield dd
|
| 339 |
-
update_log("\n CQ-OEM
|
| 340 |
else:
|
| 341 |
yield "Unsupported file format"
|
| 342 |
|
|
@@ -404,14 +404,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 404 |
out_tech = gr.HTML(label="Compliance Result of technical document")
|
| 405 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 406 |
run_btn_tech.click(check_compliance_tech, inputs=inp_tech, outputs=out_tech)
|
| 407 |
-
with gr.TabItem("CQ generation - OEM
|
| 408 |
with gr.Row():
|
| 409 |
inp_OEM_import = gr.File(
|
| 410 |
label="Upload vendor's offer in pdf format",
|
| 411 |
file_types=[".pdf"],
|
| 412 |
elem_id="oem-import-file"
|
| 413 |
)
|
| 414 |
-
run_btn_oemImport = gr.Button("Generate CQ of OEM-
|
| 415 |
out_tech = gr.HTML(label="Generated CQ")
|
| 416 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 417 |
run_btn_oemImport.click(generateCqOemImport, inputs=inp_OEM_import, outputs=out_tech)
|
|
|
|
| 336 |
{kkk}
|
| 337 |
"""
|
| 338 |
yield dd
|
| 339 |
+
update_log("\n CQ-OEM: "+datetime.now().isoformat()+"\n"+dd+"\n")
|
| 340 |
else:
|
| 341 |
yield "Unsupported file format"
|
| 342 |
|
|
|
|
| 404 |
out_tech = gr.HTML(label="Compliance Result of technical document")
|
| 405 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 406 |
run_btn_tech.click(check_compliance_tech, inputs=inp_tech, outputs=out_tech)
|
| 407 |
+
with gr.TabItem("CQ generation - OEM "):
|
| 408 |
with gr.Row():
|
| 409 |
inp_OEM_import = gr.File(
|
| 410 |
label="Upload vendor's offer in pdf format",
|
| 411 |
file_types=[".pdf"],
|
| 412 |
elem_id="oem-import-file"
|
| 413 |
)
|
| 414 |
+
run_btn_oemImport = gr.Button("Generate CQ of OEM-offer", elem_id="generateOEMImport-btn")
|
| 415 |
out_tech = gr.HTML(label="Generated CQ")
|
| 416 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 417 |
run_btn_oemImport.click(generateCqOemImport, inputs=inp_OEM_import, outputs=out_tech)
|