Commit ·
fae1c05
1
Parent(s): ec90eeb
Update app.py
Browse files82 unmodified lines83848586878889909192939482 unmodified lines@spaces.GPU(duration=120)def deidentify_doc(pdftext, maxtokens, temperature, top_probability):# prompt = "In the following text replace any person name and any address with term [redacted], replace any Date of Birth and NHS number with term [redacted]"prompt = """Perform the following actions on given report:1. Replace any person names, age, date of birth, gender with term [redacted]2. Replace any addresses with term [redacted]3. DO NOT REPLACE ANY MEDICAL MEASUREMENTS4. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]"""# model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"82 unmodified lines8384858687888990919293949596979882 unmodified lines@spaces.GPU(duration=120)def deidentify_doc(pdftext, maxtokens, temperature, top_probability):# prompt = "In the following text replace any person name and any address with term [redacted], replace any Date of Birth and NHS number with term [redacted]"# prompt = """# Perform the following actions on given report:# 1. Replace any person names, age, date of birth, gender with term [redacted]# 2. Replace any addresses with term [redacted]# 3. DO NOT REPLACE ANY MEDICAL MEASUREMENTS# 4. Replace only the CALENDAR DATES of format 'day/month/year' with term [redacted]# """prompt = """Anonymize the following report"""# model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"
app.py+9-5