cartman moved
This commit is contained in:
parent
faafd258a3
commit
51e20ae01e
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ from transformers.models.auto.modeling_auto import AutoModelForCausalLM
|
|||
from transformers.models.auto.tokenization_auto import AutoTokenizer
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large")
|
||||
model = AutoModelForCausalLM.from_pretrained("../chatbots/southpark/cartman/models/output-medium")
|
||||
model = AutoModelForCausalLM.from_pretrained("../cartman/train/cartman/models/output-medium")
|
||||
|
||||
def cartman_speak(input_text):
|
||||
input_ids = tokenizer(input_text + tokenizer.eos_token, return_tensors="pt").input_ids
|
||||
|
|
Loading…
Add table
Reference in a new issue