Pclanglais commited on
Commit
e103855
1 Parent(s): cd9ce00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -182,7 +182,9 @@ def ocr_correction(prompt, max_new_tokens=600):
182
  # Decode and return the generated text
183
  result = tokenizer.decode(output[0], skip_special_tokens=True)
184
 
185
- result = result.split("### Correction ###\n")[1]
 
 
186
 
187
  return result
188
 
 
182
  # Decode and return the generated text
183
  result = tokenizer.decode(output[0], skip_special_tokens=True)
184
 
185
+ print(result)
186
+
187
+ result = result.split("### Correction ###")[1]
188
 
189
  return result
190