srijaydeshpande commited on
Commit
57f5c2b
·
1 Parent(s): e3348c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,8 +96,6 @@ def deidentify_doc(pdftext, maxtokens, temperature, top_probability):
96
  Remove person names, any dates, date of birth, age, gender, registration numbers and any addresses from the following report.
97
  """
98
 
99
- # model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"
100
- # # model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
101
  # model = Llama(
102
  # model_path=model_id,
103
  # flash_attn=True,
@@ -196,6 +194,8 @@ def pdf_to_text(files, maxtokens=2048, temperature=0, top_probability=0.95):
196
  anonymized_text = deidentify_doc(pdftext, maxtokens, temperature, top_probability)
197
  return anonymized_text
198
 
 
 
199
 
200
  css = ".gradio-container {background: 'logo.png'}"
201
  temp_slider = gr.Slider(minimum=0, maximum=2, value=0.9, label="Temperature Value")
 
96
  Remove person names, any dates, date of birth, age, gender, registration numbers and any addresses from the following report.
97
  """
98
 
 
 
99
  # model = Llama(
100
  # model_path=model_id,
101
  # flash_attn=True,
 
194
  anonymized_text = deidentify_doc(pdftext, maxtokens, temperature, top_probability)
195
  return anonymized_text
196
 
197
+ # model_id = "models/Meta-Llama-3-70B-Instruct-Q3_K_M.gguf"
198
+ # model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
199
 
200
  css = ".gradio-container {background: 'logo.png'}"
201
  temp_slider = gr.Slider(minimum=0, maximum=2, value=0.9, label="Temperature Value")