Commit ·
b067dd6
1
Parent(s): 2745539
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,7 @@ def txt_to_html(text):
|
|
| 83 |
|
| 84 |
def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
|
| 85 |
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]"
|
|
|
|
| 86 |
|
| 87 |
# model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"
|
| 88 |
# # model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
|
|
|
|
| 83 |
|
| 84 |
def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
|
| 85 |
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]"
|
| 86 |
+
print('Control 0.5 -----------------------------------')
|
| 87 |
|
| 88 |
# model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"
|
| 89 |
# # model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
|