Kendamarron commited on
Commit
b9f6b59
1 Parent(s): 0583491

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -28,7 +28,7 @@ model.eval()
28
  input_text = "サンプルテキスト"
29
  system_message = """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: 次の要素を使った算数の文章問題を作成してください。
30
  要素: {user_input} ASSISTANT: """
31
- inputs = tokenizer(system_message.format(user_input=theme), return_tensors="pt").to(device=model.device)
32
  with torch.no_grad():
33
  outputs = model.generate(
34
  **inputs,
 
28
  input_text = "サンプルテキスト"
29
  system_message = """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: 次の要素を使った算数の文章問題を作成してください。
30
  要素: {user_input} ASSISTANT: """
31
+ inputs = tokenizer(system_message.format(user_input=input_text), return_tensors="pt").to(device=model.device)
32
  with torch.no_grad():
33
  outputs = model.generate(
34
  **inputs,