Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,13 @@ from transformers import LayoutLMv3ForTokenClassification, LayoutLMv3Processor
|
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
import pytesseract
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Set the Linux path for Tesseract
|
| 8 |
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
import pytesseract
|
| 6 |
+
import os
|
| 7 |
+
import os
|
| 8 |
+
|
| 9 |
|
| 10 |
# Set the Linux path for Tesseract
|
| 11 |
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
|
| 12 |
+
print("Tesseract version:", os.popen("tesseract --version").read())
|
| 13 |
|
| 14 |
|
| 15 |
|