Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,8 +107,7 @@ class SinaReasonMedicalChat:
|
|
| 107 |
# Apply chat template
|
| 108 |
prompt = self.tokenizer.apply_chat_template(
|
| 109 |
messages,
|
| 110 |
-
tokenize=False
|
| 111 |
-
add_generation_prompt=True,
|
| 112 |
)
|
| 113 |
|
| 114 |
# Tokenize input and move to the same device as the model
|
|
|
|
| 107 |
# Apply chat template
|
| 108 |
prompt = self.tokenizer.apply_chat_template(
|
| 109 |
messages,
|
| 110 |
+
tokenize=False
|
|
|
|
| 111 |
)
|
| 112 |
|
| 113 |
# Tokenize input and move to the same device as the model
|