try os.system
Browse files
app.py
CHANGED
@@ -5,16 +5,13 @@ if sys.platform == "linux":
|
|
5 |
import paddle
|
6 |
|
7 |
except ImportError:
|
8 |
-
import
|
9 |
|
10 |
# install libssl1.1 on HF spaces
|
11 |
-
|
12 |
-
"wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb"
|
13 |
-
check=True,
|
14 |
-
)
|
15 |
-
subprocess.run(
|
16 |
-
"sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb".split(), check=True
|
17 |
)
|
|
|
18 |
|
19 |
import cv2
|
20 |
import gradio as gr
|
|
|
5 |
import paddle
|
6 |
|
7 |
except ImportError:
|
8 |
+
import os
|
9 |
|
10 |
# install libssl1.1 on HF spaces
|
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("sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb")
|
15 |
|
16 |
import cv2
|
17 |
import gradio as gr
|