Spaces:
Running
Running
Update app.py
#8
by
GiantPandas - opened
app.py
CHANGED
|
@@ -35,6 +35,7 @@ def setup_poppler_linux():
|
|
| 35 |
poppler_dir = "/tmp/poppler"
|
| 36 |
if not os.path.exists(poppler_dir):
|
| 37 |
os.makedirs(poppler_dir, exist_ok=True)
|
|
|
|
| 38 |
subprocess.run([
|
| 39 |
"apt-get", "update"
|
| 40 |
], check=True)
|
|
|
|
| 35 |
poppler_dir = "/tmp/poppler"
|
| 36 |
if not os.path.exists(poppler_dir):
|
| 37 |
os.makedirs(poppler_dir, exist_ok=True)
|
| 38 |
+
subprocess.run(["bash", "-lc", "rm -f /etc/apt/sources.list.d/*nodesource*.list || true"], check=False)
|
| 39 |
subprocess.run([
|
| 40 |
"apt-get", "update"
|
| 41 |
], check=True)
|