Spaces:
Running
Running
Commit ·
11b64de
1
Parent(s): ad5245f
Update app.py (#8)
Browse files- Update app.py (741847dd097a4ac6bc375af243d94cffa4043924)
Co-authored-by: BaodeWang <GiantPandas@users.noreply.huggingface.co>
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)
|