Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -545,7 +545,7 @@ print(f"✅ Model downloaded to: {model_path}")
|
|
| 545 |
model = ModelWrapper(model_path)
|
| 546 |
|
| 547 |
def chat_fn(message, history, temperature, top_k, top_p, max_tokens):
|
| 548 |
-
# Build conversation context
|
| 549 |
conversation = ""
|
| 550 |
for user_msg, bot_msg in history:
|
| 551 |
conversation += f"User: {user_msg} Sam: {bot_msg} "
|
|
|
|
| 545 |
model = ModelWrapper(model_path)
|
| 546 |
|
| 547 |
def chat_fn(message, history, temperature, top_k, top_p, max_tokens):
|
| 548 |
+
# Build conversation context with proper template
|
| 549 |
conversation = ""
|
| 550 |
for user_msg, bot_msg in history:
|
| 551 |
conversation += f"User: {user_msg} Sam: {bot_msg} "
|