Spaces:
No application file
No application file
Update test.py
Browse files
test.py
CHANGED
|
@@ -5,6 +5,18 @@ import json
|
|
| 5 |
import pandas as pd
|
| 6 |
import re
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# The text output from the LLM (you would replace this with the actual output)
|
| 9 |
llm_output = """
|
| 10 |
... [Your provided text goes here] ...
|
|
|
|
| 5 |
import pandas as pd
|
| 6 |
import re
|
| 7 |
|
| 8 |
+
def filter_medical_terms(lines):
|
| 9 |
+
terms = ['er', 'pr', 'her2', 'mammaprint', 'oncotype']
|
| 10 |
+
filtered_lines = []
|
| 11 |
+
|
| 12 |
+
for line in lines:
|
| 13 |
+
if any(term in line.lower() for term in terms):
|
| 14 |
+
filtered_lines.append(line.strip())
|
| 15 |
+
|
| 16 |
+
return filtered_lines
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
# The text output from the LLM (you would replace this with the actual output)
|
| 21 |
llm_output = """
|
| 22 |
... [Your provided text goes here] ...
|