Spaces:
Sleeping
Sleeping
Darwin Danish
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
3 |
import json
|
4 |
import os
|
5 |
-
os.environ["HF_TOKEN"] = os.getenv('
|
6 |
|
7 |
# Load the tokenizer and model from Hugging Face (authentication handled via token)
|
8 |
tokenizer = AutoTokenizer.from_pretrained("Darwin29/lumina-translate")
|
|
|
2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
3 |
import json
|
4 |
import os
|
5 |
+
os.environ["HF_TOKEN"] = os.getenv('hf')
|
6 |
|
7 |
# Load the tokenizer and model from Hugging Face (authentication handled via token)
|
8 |
tokenizer = AutoTokenizer.from_pretrained("Darwin29/lumina-translate")
|