Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -358,7 +358,7 @@ def generateCqOemImport(file_name):
|
|
| 358 |
yield "Unsupported file format"
|
| 359 |
|
| 360 |
#================================
|
| 361 |
-
|
| 362 |
* {
|
| 363 |
background-color: #000000 !important;
|
| 364 |
color: #FFFFFF !important;
|
|
@@ -401,12 +401,16 @@ label {
|
|
| 401 |
background: transparent !important;
|
| 402 |
color: #FFFFFF !important;
|
| 403 |
}
|
| 404 |
-
span[style
|
| 405 |
color: inherit !important; /* Respect inline styles */
|
| 406 |
}
|
| 407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 408 |
span {
|
| 409 |
-
|
| 410 |
}
|
| 411 |
#compliance-btn { background: red !important; }
|
| 412 |
#compliance-btn-tech { background: #006600 !important; }
|
|
@@ -432,7 +436,7 @@ span {
|
|
| 432 |
"""
|
| 433 |
|
| 434 |
#=====================
|
| 435 |
-
|
| 436 |
.gradio-container {
|
| 437 |
background: linear-gradient(135deg, #000000, #1a1a1a) !important;
|
| 438 |
color: #ffffff !important;
|
|
@@ -502,6 +506,16 @@ css1 = """
|
|
| 502 |
color: #FFFFFF !important;
|
| 503 |
font-size: 16px !important;
|
| 504 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 505 |
"""
|
| 506 |
|
| 507 |
with gr.Blocks(css=css) as demo:
|
|
@@ -553,7 +567,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 553 |
elem_id="tech-file"
|
| 554 |
)
|
| 555 |
run_btn_tech = gr.Button("Check compliance of technical document", elem_id="compliance-btn-tech")
|
| 556 |
-
out_tech = gr.HTML(label="Compliance Result of technical document")
|
| 557 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 558 |
run_btn_tech.click(check_compliance_tech, inputs=inp_tech, outputs=out_tech)
|
| 559 |
with gr.TabItem("CQ generation - OEM "):
|
|
@@ -570,9 +584,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 570 |
</div>"""
|
| 571 |
)
|
| 572 |
run_btn_oemImport = gr.Button("Generate CQ of OEM-offer", elem_id="generateOEMImport-btn")
|
| 573 |
-
|
| 574 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 575 |
-
run_btn_oemImport.click(generateCqOemImport, inputs=inp_OEM_import, outputs=
|
| 576 |
with gr.TabItem("Generate TAC"):
|
| 577 |
gr.HTML("""
|
| 578 |
<div style="color: white; background: black; padding: 20px; text-align: center; font-size: 24px;">
|
|
|
|
| 358 |
yield "Unsupported file format"
|
| 359 |
|
| 360 |
#================================
|
| 361 |
+
css1 = """
|
| 362 |
* {
|
| 363 |
background-color: #000000 !important;
|
| 364 |
color: #FFFFFF !important;
|
|
|
|
| 401 |
background: transparent !important;
|
| 402 |
color: #FFFFFF !important;
|
| 403 |
}
|
| 404 |
+
span[style] {
|
| 405 |
color: inherit !important; /* Respect inline styles */
|
| 406 |
}
|
| 407 |
|
| 408 |
+
span[style*="color"] {
|
| 409 |
+
color: inherit !important !important; /* Double !important */
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
span {
|
| 413 |
+
all: unset !important;
|
| 414 |
}
|
| 415 |
#compliance-btn { background: red !important; }
|
| 416 |
#compliance-btn-tech { background: #006600 !important; }
|
|
|
|
| 436 |
"""
|
| 437 |
|
| 438 |
#=====================
|
| 439 |
+
css = """
|
| 440 |
.gradio-container {
|
| 441 |
background: linear-gradient(135deg, #000000, #1a1a1a) !important;
|
| 442 |
color: #ffffff !important;
|
|
|
|
| 506 |
color: #FFFFFF !important;
|
| 507 |
font-size: 16px !important;
|
| 508 |
}
|
| 509 |
+
#out_cq_elemid {
|
| 510 |
+
background-color: #00008B !important;
|
| 511 |
+
color: #FFFFFF !important;
|
| 512 |
+
font-size: 16px !important;
|
| 513 |
+
}
|
| 514 |
+
#out_tech_elemid {
|
| 515 |
+
background-color: #00008B !important;
|
| 516 |
+
color: #FFFFFF !important;
|
| 517 |
+
font-size: 16px !important;
|
| 518 |
+
}
|
| 519 |
"""
|
| 520 |
|
| 521 |
with gr.Blocks(css=css) as demo:
|
|
|
|
| 567 |
elem_id="tech-file"
|
| 568 |
)
|
| 569 |
run_btn_tech = gr.Button("Check compliance of technical document", elem_id="compliance-btn-tech")
|
| 570 |
+
out_tech = gr.HTML(label="Compliance Result of technical document", elem_id="out_tech_elemid")
|
| 571 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 572 |
run_btn_tech.click(check_compliance_tech, inputs=inp_tech, outputs=out_tech)
|
| 573 |
with gr.TabItem("CQ generation - OEM "):
|
|
|
|
| 584 |
</div>"""
|
| 585 |
)
|
| 586 |
run_btn_oemImport = gr.Button("Generate CQ of OEM-offer", elem_id="generateOEMImport-btn")
|
| 587 |
+
out_cq = gr.HTML(label="Generated CQ", elem_id="out_cq_elemid")
|
| 588 |
#out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 589 |
+
run_btn_oemImport.click(generateCqOemImport, inputs=inp_OEM_import, outputs=out_cq)
|
| 590 |
with gr.TabItem("Generate TAC"):
|
| 591 |
gr.HTML("""
|
| 592 |
<div style="color: white; background: black; padding: 20px; text-align: center; font-size: 24px;">
|