extract .deb and update LD_LIBRARY_PATH
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ if sys.platform == "linux":
|
|
| 11 |
os.system(
|
| 12 |
"wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb"
|
| 13 |
)
|
| 14 |
-
os.system("
|
|
|
|
| 15 |
|
| 16 |
import cv2
|
| 17 |
import gradio as gr
|
|
|
|
| 11 |
os.system(
|
| 12 |
"wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb"
|
| 13 |
)
|
| 14 |
+
os.system("dpkg -x libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb .")
|
| 15 |
+
os.environ["LD_LIBRARY_PATH"] = os.environ.get("LD_LIBRARY_PATH", "") + ":./usr/lib/x86_64-linux-gnu"
|
| 16 |
|
| 17 |
import cv2
|
| 18 |
import gradio as gr
|