Wtzwho commited on
Commit
cd21998
1 Parent(s): 904ef74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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",