fix to use actual prompt (#227)

This commit is contained in:
Awni Hannun 2024-01-04 11:12:05 -08:00 committed by GitHub
parent f95cf30a31
commit e14afb3e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ def generate(
temp: float = 0.0, temp: float = 0.0,
): ):
prompt = tokenizer( prompt = tokenizer(
args.prompt, prompt,
return_tensors="np", return_tensors="np",
return_attention_mask=False, return_attention_mask=False,
)[ )[