Spaces:
Runtime error
Runtime error
Vaishak G Kumar
commited on
Commit
·
5c24ca1
1
Parent(s):
12555c1
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ class ChatBot:
|
|
| 77 |
)
|
| 78 |
|
| 79 |
# Generate a response using the model
|
| 80 |
-
tokens =
|
| 81 |
inputs.to(model.device),
|
| 82 |
max_new_tokens=250,
|
| 83 |
temperature=0.8,
|
|
|
|
| 77 |
)
|
| 78 |
|
| 79 |
# Generate a response using the model
|
| 80 |
+
tokens = peft_model.generate(
|
| 81 |
inputs.to(model.device),
|
| 82 |
max_new_tokens=250,
|
| 83 |
temperature=0.8,
|