Spaces:
Sleeping
Sleeping
This needs to be done as root, so move out of actual gradio app, lol.
Browse files- app.py +2 -5
- packages.txt +82 -0
app.py
CHANGED
@@ -22,11 +22,8 @@ model = "claude-3-5-sonnet-20240620"
|
|
22 |
|
23 |
|
24 |
def prepare_playwright_if_needed():
|
25 |
-
#
|
26 |
-
|
27 |
-
os.system("playwright install chromium --with-deps")
|
28 |
-
else:
|
29 |
-
os.system("playwright install chromium")
|
30 |
|
31 |
|
32 |
prepare_playwright_if_needed()
|
|
|
22 |
|
23 |
|
24 |
def prepare_playwright_if_needed():
|
25 |
+
# hopefully, we already installed the deps with dependencies.txt
|
26 |
+
os.system("playwright install chromium")
|
|
|
|
|
|
|
27 |
|
28 |
|
29 |
prepare_playwright_if_needed()
|
packages.txt
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fonts-liberation
|
2 |
+
libasound2
|
3 |
+
libatk-bridge2.0-0
|
4 |
+
libatk1.0-0
|
5 |
+
libatspi2.0-0
|
6 |
+
libcairo2
|
7 |
+
libcups2
|
8 |
+
libdbus-1-3
|
9 |
+
libdrm2
|
10 |
+
libegl1
|
11 |
+
libgbm1
|
12 |
+
libglib2.0-0
|
13 |
+
libgtk-3-0
|
14 |
+
libnspr4
|
15 |
+
libnss3
|
16 |
+
libpango-1.0-0
|
17 |
+
libx11-6
|
18 |
+
libx11-xcb1
|
19 |
+
libxcb1
|
20 |
+
libxcomposite1
|
21 |
+
libxdamage1
|
22 |
+
libxext6
|
23 |
+
libxfixes3
|
24 |
+
libxrandr2
|
25 |
+
libxshmfence1
|
26 |
+
xvfb
|
27 |
+
fonts-noto-color-emoji
|
28 |
+
ttf-unifont
|
29 |
+
libfontconfig
|
30 |
+
libfreetype6
|
31 |
+
xfonts-cyrillic
|
32 |
+
xfonts-scalable
|
33 |
+
fonts-ipafont-gothic
|
34 |
+
fonts-wqy-zenhei
|
35 |
+
fonts-tlwg-loma-otf
|
36 |
+
ttf-ubuntu-font-family
|
37 |
+
ffmpeg
|
38 |
+
libcairo-gobject2
|
39 |
+
libdbus-glib-1-2
|
40 |
+
libfontconfig1
|
41 |
+
libgdk-pixbuf2.0-0
|
42 |
+
libpangocairo-1.0-0
|
43 |
+
libpangoft2-1.0-0
|
44 |
+
libxcb-shm0
|
45 |
+
libxcursor1
|
46 |
+
libxi6
|
47 |
+
libxrender1
|
48 |
+
libxt6
|
49 |
+
libxtst6
|
50 |
+
libenchant-2-2
|
51 |
+
libflite1
|
52 |
+
libx264-155
|
53 |
+
libenchant1c2a
|
54 |
+
libepoxy0
|
55 |
+
libevdev2
|
56 |
+
libgl1
|
57 |
+
libgles2
|
58 |
+
libgudev-1.0-0
|
59 |
+
libharfbuzz-icu0
|
60 |
+
libharfbuzz0b
|
61 |
+
libhyphen0
|
62 |
+
libicu66
|
63 |
+
libjpeg-turbo8
|
64 |
+
libnghttp2-14
|
65 |
+
libnotify4
|
66 |
+
libopengl0
|
67 |
+
libopenjp2-7
|
68 |
+
libopus0
|
69 |
+
libpng16-16
|
70 |
+
libsecret-1-0
|
71 |
+
libvpx6
|
72 |
+
libwayland-client0
|
73 |
+
libwayland-egl1
|
74 |
+
libwayland-server0
|
75 |
+
libwebp6
|
76 |
+
libwebpdemux2
|
77 |
+
libwoff1
|
78 |
+
libxkbcommon0
|
79 |
+
libxml2
|
80 |
+
libxslt1.1
|
81 |
+
libatomic1
|
82 |
+
libevent-2.1-7
|