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