Spaces:
Runtime error
Runtime error
Smartlizardpy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
from huggingface_hub import login
|
|
|
4 |
|
5 |
# Authenticate using token
|
6 |
-
login(token=
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
model_name = "mistralai/Mistral-Nemo-Instruct-2407"
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
from huggingface_hub import login
|
4 |
+
import os
|
5 |
|
6 |
# Authenticate using token
|
7 |
+
login(token=os.getenv('hf_token'))
|
8 |
|
9 |
# Load the model and tokenizer
|
10 |
model_name = "mistralai/Mistral-Nemo-Instruct-2407"
|