marcsixtysix commited on
Commit
f794808
·
verified ·
1 Parent(s): df8ceb9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -14,6 +14,10 @@ import uvicorn
14
  from starlette.concurrency import run_in_threadpool
15
  import subprocess, sys
16
 
 
 
 
 
17
  SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
18
 
19
  DATA_DIR = os.environ.get("DATA_DIR", "/app/data")
 
14
  from starlette.concurrency import run_in_threadpool
15
  import subprocess, sys
16
 
17
+
18
+ HF_TOKEN = os.getenv("HF_TOKEN")
19
+ login(token=HF_TOKEN)
20
+
21
  SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
22
 
23
  DATA_DIR = os.environ.get("DATA_DIR", "/app/data")