Skip to content

Commit

Permalink
Update webdemo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mago960806 authored Apr 25, 2024
1 parent 62270d1 commit 80a8b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webdemo/webdemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def evaluate(
return
prompt = reformat_sft(instruction, "")

inputs = tokenizer(prompt, return_tensors="pt")
inputs = tokenizer(prompt, return_tensors="pt").to(device)
input_ids = inputs["input_ids"]

if not (1 > temperature > 0):
Expand Down

0 comments on commit 80a8b69

Please sign in to comment.