Commit ·
b067dd6
1
Parent(s): 2745539
Update app.py
Browse files82 unmodified lines83848586878882 unmodified linesdef 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]"# model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"# # model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)82 unmodified lines8384858687888982 unmodified linesdef 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]"print('Control 0.5 -----------------------------------')# model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"# # model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
app.py+1