Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
6df37bd
1
Parent(s):
e4cc20f
add hf token
Browse files
app.py
CHANGED
|
@@ -5,6 +5,10 @@ import subprocess
|
|
| 5 |
# install requirements
|
| 6 |
os.system("pip install -r requirements.txt")
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
import tempfile
|
| 9 |
import traceback
|
| 10 |
from pathlib import Path
|
|
|
|
| 5 |
# install requirements
|
| 6 |
os.system("pip install -r requirements.txt")
|
| 7 |
|
| 8 |
+
# get hf token
|
| 9 |
+
hf_token = os.getenv("HF_TOKEN", None)
|
| 10 |
+
os.environ["HF_TOKEN"] = hf_token
|
| 11 |
+
|
| 12 |
import tempfile
|
| 13 |
import traceback
|
| 14 |
from pathlib import Path
|