Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -171,6 +171,15 @@ css = """
|
|
| 171 |
background-color: #CC0000 !important; /* Darker red on hover */
|
| 172 |
color: #FFFFFF !important;
|
| 173 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
#compliance-out textarea, #compliance-out .label, #compliance-out label {
|
| 175 |
color: #FFFFFF !important;
|
| 176 |
background-color: #000000 !important;
|
|
@@ -179,15 +188,24 @@ css = """
|
|
| 179 |
"""
|
| 180 |
|
| 181 |
with gr.Blocks(css=css) as demo:
|
| 182 |
-
with gr.
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
demo.queue().launch()
|
|
|
|
| 171 |
background-color: #CC0000 !important; /* Darker red on hover */
|
| 172 |
color: #FFFFFF !important;
|
| 173 |
}
|
| 174 |
+
#compliance-btn-tech {
|
| 175 |
+
color: #FFFFFF !important;
|
| 176 |
+
background-color: green !important; /* Red background */
|
| 177 |
+
font-size: 16px !important;
|
| 178 |
+
}
|
| 179 |
+
#compliance-btn-tech:hover {
|
| 180 |
+
background-color: #006400 !important; /* Darker red on hover */
|
| 181 |
+
color: #FFFFFF !important;
|
| 182 |
+
}
|
| 183 |
#compliance-out textarea, #compliance-out .label, #compliance-out label {
|
| 184 |
color: #FFFFFF !important;
|
| 185 |
background-color: #000000 !important;
|
|
|
|
| 188 |
"""
|
| 189 |
|
| 190 |
with gr.Blocks(css=css) as demo:
|
| 191 |
+
with gr.Tabs(elem_id="main-tabs"):
|
| 192 |
+
with gr.TabItem("Compliance Check of Arohan Admin File", icon="📋"):
|
| 193 |
+
with gr.Row():
|
| 194 |
+
inp = gr.File( # consistent name
|
| 195 |
+
label="Upload Admin File in word i.e. docx format",
|
| 196 |
+
file_types=[".docx"],
|
| 197 |
+
elem_id="admin-file"
|
| 198 |
+
)
|
| 199 |
+
run_btn = gr.Button("Check compliance", elem_id="compliance-btn")
|
| 200 |
+
out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 201 |
+
run_btn.click(check_compliance, inputs=inp, outputs=out)
|
| 202 |
+
with gr.TabItem("Compliance Check of user technical doc"", icon="💬"):
|
| 203 |
+
inp_tech = gr.File( # consistent name
|
| 204 |
+
label="Upload Admin File in word i.e. docx format",
|
| 205 |
+
file_types=[".docx"],
|
| 206 |
+
elem_id="admin-file"
|
| 207 |
+
)
|
| 208 |
+
run_btn_tech = gr.Button("Check compliance", elem_id="compliance-btn-tech")
|
| 209 |
+
out_tech = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
|
| 210 |
+
run_btn_tech.click(check_compliance_tech, inputs=inp_tech, outputs=out_tech)
|
| 211 |
demo.queue().launch()
|