Update app.py
Browse files
app.py
CHANGED
|
@@ -137,7 +137,7 @@ demo = gr.Interface(
|
|
| 137 |
fn=classify_adr,
|
| 138 |
inputs=[
|
| 139 |
gr.Textbox(lines=5, label="ADR Description"),
|
| 140 |
-
gr.Checkbox(label="Generate SHAP Explanation (slow)", value=False)
|
| 141 |
],
|
| 142 |
outputs=[
|
| 143 |
gr.Textbox(label="Predicted Probabilities"),
|
|
@@ -147,7 +147,7 @@ demo = gr.Interface(
|
|
| 147 |
gr.Textbox(label="Interpretation"),
|
| 148 |
gr.Image(label="SHAP Explanation")
|
| 149 |
],
|
| 150 |
-
title="ADR Severity & NER Classifier 2
|
| 151 |
description="Paste an ADR description to classify severity, extract symptoms, diseases, medications, and visualize SHAP explanations.",
|
| 152 |
allow_flagging="never"
|
| 153 |
)
|
|
|
|
| 137 |
fn=classify_adr,
|
| 138 |
inputs=[
|
| 139 |
gr.Textbox(lines=5, label="ADR Description"),
|
| 140 |
+
gr.Checkbox(label="Generate SHAP Explanation (VERY slow)", value=False)
|
| 141 |
],
|
| 142 |
outputs=[
|
| 143 |
gr.Textbox(label="Predicted Probabilities"),
|
|
|
|
| 147 |
gr.Textbox(label="Interpretation"),
|
| 148 |
gr.Image(label="SHAP Explanation")
|
| 149 |
],
|
| 150 |
+
title="ADR Severity & NER Classifier 2",
|
| 151 |
description="Paste an ADR description to classify severity, extract symptoms, diseases, medications, and visualize SHAP explanations.",
|
| 152 |
allow_flagging="never"
|
| 153 |
)
|