Spaces:
Runtime error
Runtime error
Commit
·
ea4455d
1
Parent(s):
b3481c4
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,14 @@ def init_session_states():
|
|
| 16 |
if 'init' not in st.session_state:
|
| 17 |
st.session_state['init'] = 1
|
| 18 |
os.system('pip install git+git://github.com/jaidedai/easyocr.git')
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
init_session_states()
|
| 23 |
import easyocr
|
|
|
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
def main():
|
|
|
|
| 16 |
if 'init' not in st.session_state:
|
| 17 |
st.session_state['init'] = 1
|
| 18 |
os.system('pip install git+git://github.com/jaidedai/easyocr.git')
|
| 19 |
+
os.system('pip install git+https://github.com/huggingface/transformers.git --upgrade')
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
init_session_states()
|
| 24 |
import easyocr
|
| 25 |
+
from transformers import TrOCRProcessor, VisionEncoderDecoderModel
|
| 26 |
+
|
| 27 |
|
| 28 |
|
| 29 |
def main():
|