Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ if prompt := st.chat_input():
|
|
| 44 |
|
| 45 |
##Get response to the message using client
|
| 46 |
inputs = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt")
|
| 47 |
-
outputs = model.generate(
|
| 48 |
|
| 49 |
|
| 50 |
|
|
|
|
| 44 |
|
| 45 |
##Get response to the message using client
|
| 46 |
inputs = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt")
|
| 47 |
+
outputs = model.generate(input_ids=inputs, max_new_tokens=150)
|
| 48 |
|
| 49 |
|
| 50 |
|