Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,6 @@ 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 |
|
|
@@ -52,4 +50,4 @@ if left_col.button("OCR Detect"):
|
|
| 52 |
right_col.write("**ORIGIN IMAGE:** ")
|
| 53 |
right_col.image(image)
|
| 54 |
right_col.write("**OCR IMAGE:** ")
|
| 55 |
-
right_col.image(visualize_image)
|
|
|
|
| 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 |
|
|
|
|
| 50 |
right_col.write("**ORIGIN IMAGE:** ")
|
| 51 |
right_col.image(image)
|
| 52 |
right_col.write("**OCR IMAGE:** ")
|
| 53 |
+
right_col.image(visualize_image)
|