Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ max_speech_ms=float("inf")
|
|
128 |
# "distil-whisper/distil-large-v3",
|
129 |
# torch_dtype="float16",
|
130 |
# ).to("cpu")
|
131 |
-
access_token
|
132 |
LM_tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-1B-Instruct", token=access_token)
|
133 |
LM_model = AutoModelForCausalLM.from_pretrained(
|
134 |
"meta-llama/Llama-3.2-1B-Instruct", torch_dtype="float16", trust_remote_code=True, token=access_token
|
|
|
128 |
# "distil-whisper/distil-large-v3",
|
129 |
# torch_dtype="float16",
|
130 |
# ).to("cpu")
|
131 |
+
access_token = os.environ.get("HF_TOKEN")
|
132 |
LM_tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-1B-Instruct", token=access_token)
|
133 |
LM_model = AutoModelForCausalLM.from_pretrained(
|
134 |
"meta-llama/Llama-3.2-1B-Instruct", torch_dtype="float16", trust_remote_code=True, token=access_token
|