Spaces:
Running
Running
Commit
•
9adc69d
1
Parent(s):
8cc97cd
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gdown
|
|
|
2 |
import datetime
|
3 |
import openai
|
4 |
import uuid
|
@@ -28,9 +29,9 @@ from ttyd_consts import *
|
|
28 |
|
29 |
###############################################################################################
|
30 |
|
|
|
31 |
|
32 |
# select the mode at runtime when starting container - modes options are in ttyd_consts.py
|
33 |
-
|
34 |
if (os.getenv("TTYD_MODE")).split('_')[0]=='personalBot':
|
35 |
mode = mode_arslan
|
36 |
gDriveUrl = os.getenv("GDRIVE_FOLDER_URL")
|
|
|
1 |
import gdown
|
2 |
+
from dotenv import load_dotenv
|
3 |
import datetime
|
4 |
import openai
|
5 |
import uuid
|
|
|
29 |
|
30 |
###############################################################################################
|
31 |
|
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")
|