Neo2902 commited on
Commit ·
b7d998d
1
Parent(s): 34f22e3
Projet complet avec chunking, extract_playlist et youtube_search
Browse files
app.py
CHANGED
|
@@ -12,7 +12,14 @@ import chunking
|
|
| 12 |
import extract_playlist_playwright
|
| 13 |
import youtube_search
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Installer Playwright et les navigateurs au démarrage
|
|
|
|
| 16 |
try:
|
| 17 |
subprocess.run(["playwright", "install"], check=True)
|
| 18 |
print("Playwright browsers installed successfully.")
|
|
|
|
| 12 |
import extract_playlist_playwright
|
| 13 |
import youtube_search
|
| 14 |
|
| 15 |
+
# Installer Playwright et ses deps
|
| 16 |
+
try:
|
| 17 |
+
subprocess.run(["playwright", "install-deps"], check=True)
|
| 18 |
+
print("Playwright deps installed successfully.")
|
| 19 |
+
except Exception as e:
|
| 20 |
+
print(f"Erreur lors de l'installation des navigateurs Playwright : {e}")
|
| 21 |
# Installer Playwright et les navigateurs au démarrage
|
| 22 |
+
|
| 23 |
try:
|
| 24 |
subprocess.run(["playwright", "install"], check=True)
|
| 25 |
print("Playwright browsers installed successfully.")
|