Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ else:
|
|
25 |
print("Error executing command:")
|
26 |
print(cmd2.stderr)
|
27 |
sleep(5)
|
28 |
-
cmd3 = subprocess.run("apt-get install -y
|
29 |
if cmd3.returncode == 0:
|
30 |
print("Command output:")
|
31 |
print(cmd3.stdout)
|
@@ -34,7 +34,7 @@ else:
|
|
34 |
print("Error executing command:")
|
35 |
print(cmd3.stderr)
|
36 |
sleep(5)
|
37 |
-
cmd4 = subprocess.run("apt-get install -y
|
38 |
if cmd4.returncode == 0:
|
39 |
print("Command output:")
|
40 |
print(cmd4.stdout)
|
|
|
25 |
print("Error executing command:")
|
26 |
print(cmd2.stderr)
|
27 |
sleep(5)
|
28 |
+
cmd3 = subprocess.run("apt-get install -y chromium-browser", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
29 |
if cmd3.returncode == 0:
|
30 |
print("Command output:")
|
31 |
print(cmd3.stdout)
|
|
|
34 |
print("Error executing command:")
|
35 |
print(cmd3.stderr)
|
36 |
sleep(5)
|
37 |
+
cmd4 = subprocess.run("apt-get install -y chromium", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
38 |
if cmd4.returncode == 0:
|
39 |
print("Command output:")
|
40 |
print(cmd4.stdout)
|