Pclanglais commited on
Commit
c4873ef
1 Parent(s): 61dc098

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -163,7 +163,7 @@ def split_text(text, max_tokens=500):
163
 
164
 
165
  # Function to generate text
166
- def ocr_correction(prompt, max_new_tokens=600, num_threads=os.cpu_count()):
167
  prompt = f"""### Text ###\n{prompt}\n\n\n### Correction ###\n"""
168
  input_ids = tokenizer.encode(prompt, return_tensors="pt").to(device)
169
 
 
163
 
164
 
165
  # Function to generate text
166
+ def ocr_correction(prompt, max_new_tokens=600, num_threads=os.cpu_count()):
167
  prompt = f"""### Text ###\n{prompt}\n\n\n### Correction ###\n"""
168
  input_ids = tokenizer.encode(prompt, return_tensors="pt").to(device)
169