Spaces:
Runtime error
Runtime error
YanshekWoo
commited on
Commit
•
e590807
1
Parent(s):
fd3761b
Delete attention mask
Browse files
app.py
CHANGED
@@ -26,8 +26,7 @@ def chat(history):
|
|
26 |
max_length=512)
|
27 |
|
28 |
input_ids = outputs.input_ids
|
29 |
-
|
30 |
-
output_ids = model.generate(input_ids, attention_mask)[0]
|
31 |
|
32 |
return tokenizer.decode(output_ids, skip_special_tokens=True)
|
33 |
|
|
|
26 |
max_length=512)
|
27 |
|
28 |
input_ids = outputs.input_ids
|
29 |
+
output_ids = model.generate(input_ids)[0]
|
|
|
30 |
|
31 |
return tokenizer.decode(output_ids, skip_special_tokens=True)
|
32 |
|