Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
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])
|