Update app.py
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def ner_predict(text):
|
|
| 175 |
}
|
| 176 |
|
| 177 |
label_display = {
|
| 178 |
-
"DISEASE": "
|
| 179 |
"SYMPTOM": "symptom",
|
| 180 |
"MEDICATION": "medication",
|
| 181 |
"PROCEDURE": "procedure",
|
|
@@ -226,12 +226,15 @@ def ner_predict(text):
|
|
| 226 |
|
| 227 |
return highlighted, entity_list
|
| 228 |
|
| 229 |
-
with gr.Blocks(title="Feline Veterinary NER") as demo:
|
| 230 |
gr.Markdown("# 🐱 Feline Veterinary NER System")
|
| 231 |
gr.Markdown(
|
| 232 |
-
"
|
| 233 |
-
"
|
|
|
|
|
|
|
| 234 |
)
|
|
|
|
| 235 |
|
| 236 |
input_text = gr.Textbox(
|
| 237 |
label="Input Text",
|
|
|
|
| 175 |
}
|
| 176 |
|
| 177 |
label_display = {
|
| 178 |
+
"DISEASE": "disease",
|
| 179 |
"SYMPTOM": "symptom",
|
| 180 |
"MEDICATION": "medication",
|
| 181 |
"PROCEDURE": "procedure",
|
|
|
|
| 226 |
|
| 227 |
return highlighted, entity_list
|
| 228 |
|
| 229 |
+
with gr.Blocks(title="Feline Veterinary NER (Educational Demo)") as demo:
|
| 230 |
gr.Markdown("# 🐱 Feline Veterinary NER System")
|
| 231 |
gr.Markdown(
|
| 232 |
+
"**Educational and research demo only — NOT for clinical use.**\n\n"
|
| 233 |
+
"Extracts **disease**, **symptom**, **medication**, **procedure**, "
|
| 234 |
+
"and **anatomy** from feline veterinary literature. "
|
| 235 |
+
"Handles PDF/HTML paste artifacts."
|
| 236 |
)
|
| 237 |
+
|
| 238 |
|
| 239 |
input_text = gr.Textbox(
|
| 240 |
label="Input Text",
|