Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -568,11 +568,33 @@ with gr.Blocks(title="ADR Detector") as demo:
|
|
| 568 |
gr.Markdown("<p class='card-label'>Model Logic (SHAP)</p>")
|
| 569 |
shap_out = gr.HTML(label="Feature Importance")
|
| 570 |
|
| 571 |
-
# ββ
|
| 572 |
-
gr.
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 576 |
|
| 577 |
submit_btn.click(
|
| 578 |
fn=adr_predict,
|
|
|
|
| 568 |
gr.Markdown("<p class='card-label'>Model Logic (SHAP)</p>")
|
| 569 |
shap_out = gr.HTML(label="Feature Importance")
|
| 570 |
|
| 571 |
+
# ββ Disclaimer footer βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 572 |
+
with gr.Column(elem_classes="card"):
|
| 573 |
+
gr.Markdown(
|
| 574 |
+
"<div style='"
|
| 575 |
+
"border-left: 4px solid #e8a020; "
|
| 576 |
+
"padding: 14px 18px; "
|
| 577 |
+
"background: #fffbea; "
|
| 578 |
+
"border-radius: 6px; "
|
| 579 |
+
"font-family: system-ui, sans-serif;'>"
|
| 580 |
+
|
| 581 |
+
"<p style='margin:0 0 6px 0; font-size:0.85em; font-weight:800; "
|
| 582 |
+
"letter-spacing:0.08em; text-transform:uppercase; color:#b07800;'>"
|
| 583 |
+
"β Academic Project β Not for Medical Use</p>"
|
| 584 |
+
|
| 585 |
+
"<p style='margin:0 0 8px 0; font-size:0.92em; color:#444; line-height:1.65;'>"
|
| 586 |
+
"This tool was developed strictly as an <strong>academic research project</strong> "
|
| 587 |
+
"and is intended to demonstrate the application of natural language processing "
|
| 588 |
+
"and explainable AI techniques to clinical text. "
|
| 589 |
+
"It <strong>must not</strong> be used to make real medical decisions, diagnose conditions, "
|
| 590 |
+
"guide treatment, or replace the advice of a qualified healthcare professional.</p>"
|
| 591 |
+
|
| 592 |
+
"<p style='margin:0; font-size:0.85em; color:#777; line-height:1.5;'>"
|
| 593 |
+
"Predictions are generated by a machine learning model and may be inaccurate, incomplete, "
|
| 594 |
+
"or misleading. Always consult a licensed medical professional for any health-related concerns. "
|
| 595 |
+
"The authors accept no liability for any use of this tool beyond its intended academic purpose.</p>"
|
| 596 |
+
"</div>"
|
| 597 |
+
)
|
| 598 |
|
| 599 |
submit_btn.click(
|
| 600 |
fn=adr_predict,
|