gaunernst commited on
Commit
207bb7c
·
1 Parent(s): d6fa40e

try os.system

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -5,16 +5,13 @@ if sys.platform == "linux":
5
  import paddle
6
 
7
  except ImportError:
8
- import subprocess
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
- "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