manabb commited on
Commit
bb6c1b0
·
verified ·
1 Parent(s): 8ab84b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -142,7 +142,7 @@ def loop_function(df):
142
  if i == 1:
143
  try:
144
  text += """
145
- <div style="color: #006400 !important; background: white; padding: 10px; font-size: 14px;">
146
  """
147
  text += "<h1>As per proposal, "+key + " : "+value+"</h1>"
148
  rr = generate_response(manual_rules, proposal_details)
@@ -211,13 +211,9 @@ with gr.Blocks(css=css) as demo:
211
  #out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
212
  run_btn.click(check_compliance, inputs=inp, outputs=out)
213
  with gr.TabItem("Compliance Check of user technical doc"):
214
- with gr.Row():
215
- inp_tech = gr.File(
216
- label="Upload technical document in pdf format",
217
- file_types=[".pdf"],
218
- elem_id="admin-file"
219
- )
220
- run_btn_tech = gr.Button("Check compliance", elem_id="compliance-btn-tech")
221
- out_tech = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
222
- run_btn_tech.click(check_compliance_tech, inputs=inp_tech, outputs=out_tech)
223
  demo.queue().launch()
 
142
  if i == 1:
143
  try:
144
  text += """
145
+ <div style="color: white !important; background: #006400 !important; padding: 10px; font-size: 14px;">
146
  """
147
  text += "<h1>As per proposal, "+key + " : "+value+"</h1>"
148
  rr = generate_response(manual_rules, proposal_details)
 
211
  #out = gr.Textbox(lines=15, label="Compliance Result",elem_id="compliance-out")
212
  run_btn.click(check_compliance, inputs=inp, outputs=out)
213
  with gr.TabItem("Compliance Check of user technical doc"):
214
+ gr.HTML("""
215
+ <div style="color: white; background: black; padding: 20px; text-align: center; font-size: 24px;">
216
+ 🚧 Coming Soon 🚧
217
+ </div>"""
218
+ )
 
 
 
 
219
  demo.queue().launch()