shayekh commited on
Commit
63f07fd
·
verified ·
1 Parent(s): c3a8d0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -29,13 +29,14 @@ else:
29
 
30
  os.environ['PLAYWRIGHT_BROWSERS_PATH'] = "/home/user/huggingface/ms-playwright"
31
  # os.system("playwright install chromium")
32
- result = subprocess.run(
33
- [sys.executable, "-m", "playwright", "install", "chromium"],
34
- env={**os.environ},
35
- check=True,
36
- stdout=subprocess.PIPE,
37
- stderr=subprocess.PIPE
38
- )
 
39
 
40
  import gradio as gr
41
  import fitz # PyMuPDF
 
29
 
30
  os.environ['PLAYWRIGHT_BROWSERS_PATH'] = "/home/user/huggingface/ms-playwright"
31
  # os.system("playwright install chromium")
32
+ # result = subprocess.run(
33
+ # [sys.executable, "-m", "playwright", "install", "chromium"],
34
+ # env={**os.environ},
35
+ # check=True,
36
+ # stdout=subprocess.PIPE,
37
+ # stderr=subprocess.PIPE
38
+ # )
39
+ subprocess.run(["playwright", "install"])
40
 
41
  import gradio as gr
42
  import fitz # PyMuPDF