arslan-ahmed commited on
Commit
7664936
1 Parent(s): 9adc69d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -32,16 +32,16 @@ from ttyd_consts import *
32
  load_dotenv()
33
 
34
  # select the mode at runtime when starting container - modes options are in ttyd_consts.py
35
- if (os.getenv("TTYD_MODE")).split('_')[0]=='personalBot':
36
  mode = mode_arslan
37
- gDriveUrl = os.getenv("GDRIVE_FOLDER_URL")
38
  # output folder of googe drive folder will be taken as input dir of personalBot
39
  gdown.download_folder(url=gDriveUrl, output=mode.inputDir, quiet=True)
40
- if os.getenv("TTYD_MODE")!='personalBot_arslan':
41
  mode.title=''
42
  mode.welcomeMsg=''
43
 
44
- elif os.getenv("TTYD_MODE")=='nustian':
45
  mode = mode_nustian
46
  else:
47
  mode = mode_general
 
32
  load_dotenv()
33
 
34
  # select the mode at runtime when starting container - modes options are in ttyd_consts.py
35
+ if (os.getenv("TTYD_MODE",'')).split('_')[0]=='personalBot':
36
  mode = mode_arslan
37
+ gDriveUrl = (os.getenv("GDRIVE_FOLDER_URL",'')).replace('?usp=sharing','')
38
  # output folder of googe drive folder will be taken as input dir of personalBot
39
  gdown.download_folder(url=gDriveUrl, output=mode.inputDir, quiet=True)
40
+ if os.getenv("TTYD_MODE",'')!='personalBot_arslan':
41
  mode.title=''
42
  mode.welcomeMsg=''
43
 
44
+ elif os.getenv("TTYD_MODE",'')=='nustian':
45
  mode = mode_nustian
46
  else:
47
  mode = mode_general