Spaces:
Runtime error
Runtime error
goendalf666
commited on
Commit
•
37fb80b
1
Parent(s):
8a396c1
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
4 |
|
5 |
# Initialize the model and tokenizer
|
6 |
cuda = "cuda:0" if torch.cuda.is_available() else "cpu"
|
7 |
-
model = AutoModelForCausalLM.from_pretrained("goendalf666/salesGPT_v2").to(cuda)
|
8 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-1_5")
|
9 |
|
10 |
def interact_with_model(user_input):
|
|
|
4 |
|
5 |
# Initialize the model and tokenizer
|
6 |
cuda = "cuda:0" if torch.cuda.is_available() else "cpu"
|
7 |
+
model = AutoModelForCausalLM.from_pretrained("goendalf666/salesGPT_v2", trust_remote_code=True).to(cuda)
|
8 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-1_5")
|
9 |
|
10 |
def interact_with_model(user_input):
|