ldhldh commited on
Commit
a7e58c9
ยท
1 Parent(s): 68b221f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -75,6 +75,7 @@ def chat(id, npc, prompt):
75
  inputs = tokenizer(prom, return_tensors="pt")["input_ids"]
76
  outputs = model.generate(inputs, max_new_tokens=100)
77
  print(tokenizer.decode(outputs[0]))
 
78
  else:
79
  output = "no model"
80
 
 
75
  inputs = tokenizer(prom, return_tensors="pt")["input_ids"]
76
  outputs = model.generate(inputs, max_new_tokens=100)
77
  print(tokenizer.decode(outputs[0]))
78
+ output = outputs[len(prom):-1]
79
  else:
80
  output = "no model"
81