Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ huggingface_token = os.getenv('LLAMA_ACCES_TOKEN')
|
|
14 |
#model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf", token=huggingface_token)
|
15 |
|
16 |
# Load the tokenizer and model
|
17 |
-
tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2")
|
18 |
-
model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2")
|
19 |
|
20 |
# Assuming BERTopic and other necessary components are initialized here
|
21 |
# Initialize your BERTopic model
|
|
|
14 |
#model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf", token=huggingface_token)
|
15 |
|
16 |
# Load the tokenizer and model
|
17 |
+
tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2-xl")
|
18 |
+
model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2-xl")
|
19 |
|
20 |
# Assuming BERTopic and other necessary components are initialized here
|
21 |
# Initialize your BERTopic model
|