Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def llama2_chat(prompt):
|
|
18 |
input_ids=inputs["input_ids"],
|
19 |
attention_mask=inputs["attention_mask"], # Pass attention_mask!
|
20 |
max_new_tokens=100,
|
|
|
21 |
temperature=0.3
|
22 |
)
|
23 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
|
|
18 |
input_ids=inputs["input_ids"],
|
19 |
attention_mask=inputs["attention_mask"], # Pass attention_mask!
|
20 |
max_new_tokens=100,
|
21 |
+
max_length=30,
|
22 |
temperature=0.3
|
23 |
)
|
24 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|