Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ emotion_prediction_tokenizer = AutoTokenizer.from_pretrained("bhadresh-savani/di
|
|
64 |
response_model_name = "gpt2-xl"
|
65 |
response_tokenizer = AutoTokenizer.from_pretrained(response_model_name)
|
66 |
with init_empty_weights():
|
67 |
-
response_model = AutoModelForCausalLM.from_pretrained(response_model_name, device_map="auto", torch_dtype=torch.float16
|
68 |
|
69 |
# Set the pad token
|
70 |
response_tokenizer.pad_token = response_tokenizer.eos_token
|
|
|
64 |
response_model_name = "gpt2-xl"
|
65 |
response_tokenizer = AutoTokenizer.from_pretrained(response_model_name)
|
66 |
with init_empty_weights():
|
67 |
+
response_model = AutoModelForCausalLM.from_pretrained(response_model_name, device_map="auto", torch_dtype=torch.float16)
|
68 |
|
69 |
# Set the pad token
|
70 |
response_tokenizer.pad_token = response_tokenizer.eos_token
|