Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,10 +16,7 @@ else:
|
|
| 16 |
print("Error executing command:")
|
| 17 |
print(cmd1.stderr)
|
| 18 |
sleep(5)
|
| 19 |
-
cmd2 = subprocess.run("apt-get install -y libglib2.0-0=2.50.3-2
|
| 20 |
-
libnss3=2:3.26.2-1.1+deb9u1 \
|
| 21 |
-
libgconf-2-4=3.2.6-4+b1 \
|
| 22 |
-
libfontconfig1=2.11.0-6.7+b1", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 23 |
if cmd2.returncode == 0:
|
| 24 |
print("Command output:")
|
| 25 |
print(cmd2.stdout)
|
|
@@ -28,32 +25,32 @@ else:
|
|
| 28 |
print("Error executing command:")
|
| 29 |
print(cmd2.stderr)
|
| 30 |
sleep(5)
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
#
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
#
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
#
|
| 55 |
-
|
| 56 |
-
|
| 57 |
sleep(5)
|
| 58 |
st.text("done")
|
| 59 |
st.text("chrome")
|
|
|
|
| 16 |
print("Error executing command:")
|
| 17 |
print(cmd1.stderr)
|
| 18 |
sleep(5)
|
| 19 |
+
cmd2 = subprocess.run("apt-get install -y libglib2.0-0=2.50.3-2", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
|
|
|
|
|
|
|
|
|
| 20 |
if cmd2.returncode == 0:
|
| 21 |
print("Command output:")
|
| 22 |
print(cmd2.stdout)
|
|
|
|
| 25 |
print("Error executing command:")
|
| 26 |
print(cmd2.stderr)
|
| 27 |
sleep(5)
|
| 28 |
+
cmd3 = subprocess.run("apt-get install -y libnss3:i386", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 29 |
+
if cmd3.returncode == 0:
|
| 30 |
+
print("Command output:")
|
| 31 |
+
print(cmd3.stdout)
|
| 32 |
+
else:
|
| 33 |
+
# Print the error message
|
| 34 |
+
print("Error executing command:")
|
| 35 |
+
print(cmd3.stderr)
|
| 36 |
+
sleep(5)
|
| 37 |
+
cmd4 = subprocess.run("apt-get install -y libgconf-2-4", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 38 |
+
if cmd4.returncode == 0:
|
| 39 |
+
print("Command output:")
|
| 40 |
+
print(cmd4.stdout)
|
| 41 |
+
else:
|
| 42 |
+
# Print the error message
|
| 43 |
+
print("Error executing command:")
|
| 44 |
+
print(cmd4.stderr)
|
| 45 |
+
sleep(5)
|
| 46 |
+
cmd5 = subprocess.run("apt-get install -y libfontconfig1", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 47 |
+
if cmd5.returncode == 0:
|
| 48 |
+
print("Command output:")
|
| 49 |
+
print(cmd5.stdout)
|
| 50 |
+
else:
|
| 51 |
+
# Print the error message
|
| 52 |
+
print("Error executing command:")
|
| 53 |
+
print(cmd5.stderr)
|
| 54 |
sleep(5)
|
| 55 |
st.text("done")
|
| 56 |
st.text("chrome")
|