Spaces:
Sleeping
Sleeping
Avijit Ghosh
commited on
Commit
•
12fa528
1
Parent(s):
30ad9cf
added back login
Browse files
app.py
CHANGED
@@ -12,11 +12,12 @@ import stone
|
|
12 |
import os
|
13 |
import spaces
|
14 |
|
15 |
-
|
16 |
-
login()
|
17 |
|
18 |
|
19 |
-
|
|
|
|
|
20 |
|
21 |
# Define model initialization functions
|
22 |
def load_model(model_name):
|
|
|
12 |
import os
|
13 |
import spaces
|
14 |
|
15 |
+
api_key = os.getenv("AccessTokenSD3")
|
|
|
16 |
|
17 |
|
18 |
+
from huggingface_hub import login
|
19 |
+
login(token = api_key)
|
20 |
+
|
21 |
|
22 |
# Define model initialization functions
|
23 |
def load_model(model_name):
|