Spaces:
Running
Running
Pclanglais
commited on
Update app.py
Browse files
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
|
|
|
|
|
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 |
|