burtenshaw HF Staff commited on
Commit
d702853
·
verified ·
1 Parent(s): c9b2e7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,7 +31,8 @@ def generate(prompt, history):
31
  conversation,
32
  add_generation_prompt=True,
33
  tokenize=True,
34
- return_tensors="pt"
 
35
  ).to(device)
36
 
37
  with torch.no_grad():
 
31
  conversation,
32
  add_generation_prompt=True,
33
  tokenize=True,
34
+ return_tensors="pt",
35
+ return_dict=True
36
  ).to(device)
37
 
38
  with torch.no_grad():