salmanmapkar commited on
Commit
5cdc4d3
1 Parent(s): 27a9c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -5,13 +5,8 @@ from loguru import logger
5
  import random
6
  from transformers import pipeline
7
  import torch
8
- import subprocess
9
- subprocess.Popen( 'apt -y install xvfb',
10
- shell=True,
11
- stdin=subprocess.PIPE ).communicate()
12
- # from xvfbwrapper import Xvfb
13
- # vdisplay = Xvfb()
14
- # vdisplay.start()
15
  session_token = os.environ.get('SessionToken')
16
 
17
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
 
5
  import random
6
  from transformers import pipeline
7
  import torch
8
+ from selenium_profiles.utils.installer import install_chromedriver
9
+ install_chromedriver()
 
 
 
 
 
10
  session_token = os.environ.get('SessionToken')
11
 
12
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")