Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|