Spaces:
Sleeping
Sleeping
login
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
| 8 |
|
| 9 |
@spaces.GPU
|
| 10 |
def sentience_check():
|
| 11 |
-
huggingface_hub.login(
|
| 12 |
device = torch.device("cuda")
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained("debisoft/gemma-2-2B-it-thinking-function_calling-V0")
|
| 14 |
model = AutoModelForCausalLM.from_pretrained("debisoft/gemma-2-2B-it-thinking-function_calling-V0").to(device)
|
|
|
|
| 8 |
|
| 9 |
@spaces.GPU
|
| 10 |
def sentience_check():
|
| 11 |
+
huggingface_hub.login(os.getenv('HUGGINGFACE_TOKEN'))
|
| 12 |
device = torch.device("cuda")
|
| 13 |
tokenizer = AutoTokenizer.from_pretrained("debisoft/gemma-2-2B-it-thinking-function_calling-V0")
|
| 14 |
model = AutoModelForCausalLM.from_pretrained("debisoft/gemma-2-2B-it-thinking-function_calling-V0").to(device)
|