rishi1985 commited on
Commit
702d207
1 Parent(s): c9fdfac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -205,7 +205,8 @@ def do_ML_MPT(text:str, trycount:int):
205
  options = ChromeOptions()
206
  options.add_argument('--no-sandbox')
207
  options.add_argument('-headless')
208
- service = Service()
 
209
  driver = webdriver.Chrome(options= options,service=service)
210
  driver.get("https://mosaicml-mpt-30b-chat.hf.space")
211
  try:
 
205
  options = ChromeOptions()
206
  options.add_argument('--no-sandbox')
207
  options.add_argument('-headless')
208
+ options.add_argument("start-maximized")
209
+ service = Service(executable_path=chrome_driver_path)
210
  driver = webdriver.Chrome(options= options,service=service)
211
  driver.get("https://mosaicml-mpt-30b-chat.hf.space")
212
  try: