Spaces:
Sleeping
Sleeping
tangxuemei
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ import src.display.utils as utils
|
|
9 |
import src.envs as envs
|
10 |
import src.populate as populate
|
11 |
import src.submission.submit as submit
|
12 |
-
|
|
|
13 |
|
14 |
def restart_space():
|
15 |
envs.API.restart_space(repo_id=envs.REPO_ID, token=envs.TOKEN)
|
|
|
9 |
import src.envs as envs
|
10 |
import src.populate as populate
|
11 |
import src.submission.submit as submit
|
12 |
+
import os
|
13 |
+
TOKEN = os.environ.get("HF_TOKEN", None)
|
14 |
|
15 |
def restart_space():
|
16 |
envs.API.restart_space(repo_id=envs.REPO_ID, token=envs.TOKEN)
|