Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import os
|
|
3 |
import torch
|
4 |
import spaces
|
5 |
from transformers import AutoModel
|
|
|
6 |
|
7 |
hf_token = os.getenv("HF_TOKEN")
|
8 |
login(token=hf_token, add_to_git_credential=True)
|
|
|
3 |
import torch
|
4 |
import spaces
|
5 |
from transformers import AutoModel
|
6 |
+
from huggingface_hub import login
|
7 |
|
8 |
hf_token = os.getenv("HF_TOKEN")
|
9 |
login(token=hf_token, add_to_git_credential=True)
|