Spaces:
Build error
Build error
truong-xuan-linh
commited on
Commit
·
51273bc
1
Parent(s):
55d5abe
update libss11
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
3 |
-
|
4 |
#Trick to not init function multitime
|
5 |
if "ocr_detector" not in st.session_state:
|
6 |
print("INIT MODEL")
|
|
|
|
|
7 |
from src.setup import Setup
|
8 |
Setup().ocr_model_downloader()
|
9 |
|
|
|
1 |
import streamlit as st
|
2 |
from PIL import Image
|
3 |
+
import os
|
4 |
#Trick to not init function multitime
|
5 |
if "ocr_detector" not in st.session_state:
|
6 |
print("INIT MODEL")
|
7 |
+
os.system("wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb")
|
8 |
+
os.system("sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb")
|
9 |
from src.setup import Setup
|
10 |
Setup().ocr_model_downloader()
|
11 |
|