Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ import torch
|
|
4 |
|
5 |
# Initialize the model and tokenizer
|
6 |
model_name = "AIFS/Prometh-MOEM-V.01"
|
|
|
|
|
|
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
text_generation_pipeline = pipeline(
|
9 |
"text-generation",
|
|
|
4 |
|
5 |
# Initialize the model and tokenizer
|
6 |
model_name = "AIFS/Prometh-MOEM-V.01"
|
7 |
+
|
8 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
9 |
+
|
10 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
11 |
text_generation_pipeline = pipeline(
|
12 |
"text-generation",
|