SCBconsulting commited on
Commit
2f5fee7
Β·
verified Β·
1 Parent(s): 3de8d26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -15,17 +15,18 @@ def handle_input(file, raw_text):
15
  elif raw_text.strip() != "":
16
  content = raw_text
17
  else:
18
- return "Please upload a contract or paste text.", "", {}, [], ""
19
- return content, "", {}, [], ""
20
 
21
  with gr.Blocks(title="SYNCLM – AI Contract Intelligence Demo") as demo:
22
- gr.Markdown("# πŸš€ SYNCLM: Contract Lifecycle Management Reimagined")
23
  gr.Markdown(
24
  """
25
- Experience **Innovation and Transformation**
26
- through smart, secure and streamlined contract intelligence.
27
-
28
- Upload a document or paste its contents below. Then activate your insights.
 
 
29
  """
30
  )
31
 
@@ -53,7 +54,7 @@ with gr.Blocks(title="SYNCLM – AI Contract Intelligence Demo") as demo:
53
  parse_btn.click(
54
  fn=handle_input,
55
  inputs=[file_input, text_input],
56
- outputs=[contract_display, summary_output, metadata_output, risk_output, fallback_output]
57
  )
58
  summarize_btn.click(fn=summarize_text, inputs=[contract_display], outputs=[summary_output])
59
  metadata_btn.click(fn=extract_metadata, inputs=[contract_display], outputs=[metadata_output])
 
15
  elif raw_text.strip() != "":
16
  content = raw_text
17
  else:
18
+ return "Please upload a contract or paste text.", "", {}, [], "", ""
19
+ return content, "", {}, [], "", ""
20
 
21
  with gr.Blocks(title="SYNCLM – AI Contract Intelligence Demo") as demo:
 
22
  gr.Markdown(
23
  """
24
+ <div style="font-size: 28px; font-weight: bold; margin-bottom: 10px;">
25
+ πŸš€ Innovation Meets Intelligence
26
+ </div>
27
+ <div style="font-size: 18px; line-height: 1.5;">
28
+ Upload a contract or paste the text. SYNCLM will analyze, summarize, extract metadata, detect risks, suggest fallback clauses, and even translate key sections.
29
+ </div>
30
  """
31
  )
32
 
 
54
  parse_btn.click(
55
  fn=handle_input,
56
  inputs=[file_input, text_input],
57
+ outputs=[contract_display, summary_output, metadata_output, risk_output, fallback_output, translation_output]
58
  )
59
  summarize_btn.click(fn=summarize_text, inputs=[contract_display], outputs=[summary_output])
60
  metadata_btn.click(fn=extract_metadata, inputs=[contract_display], outputs=[metadata_output])