Spaces:
Build error
Build error
Commit
·
fc3b18f
1
Parent(s):
06adb35
Upload app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import os
|
|
| 8 |
# # See https://detectron2.readthedocs.io/tutorials/install.html for instructions
|
| 9 |
# os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
|
| 10 |
# ## install PyTesseract
|
| 11 |
-
|
| 12 |
import gradio as gr
|
| 13 |
import numpy as np
|
| 14 |
from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
|
|
|
|
| 8 |
# # See https://detectron2.readthedocs.io/tutorials/install.html for instructions
|
| 9 |
# os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
|
| 10 |
# ## install PyTesseract
|
| 11 |
+
os.system('pip install -q pytesseract')
|
| 12 |
import gradio as gr
|
| 13 |
import numpy as np
|
| 14 |
from transformers import LayoutLMv2Processor, LayoutLMv2ForTokenClassification
|