Spaces:
Sleeping
Sleeping
Alina Lozovskaya
commited on
Commit
·
7245ade
1
Parent(s):
5289522
Oauth fix
Browse files- yourbench_space/utils.py +1 -1
yourbench_space/utils.py
CHANGED
@@ -32,7 +32,7 @@ class SubprocessManager:
|
|
32 |
new_env = os.environ.copy()
|
33 |
# Override env token, when running in gradio space
|
34 |
if oauth_token:
|
35 |
-
new_env["HF_TOKEN"] = oauth_token
|
36 |
|
37 |
self.process = subprocess.Popen(
|
38 |
self.command,
|
|
|
32 |
new_env = os.environ.copy()
|
33 |
# Override env token, when running in gradio space
|
34 |
if oauth_token:
|
35 |
+
new_env["HF_TOKEN"] = oauth_token.token
|
36 |
|
37 |
self.process = subprocess.Popen(
|
38 |
self.command,
|