Spaces:
Sleeping
Sleeping
Update app1.py
Browse files
app1.py
CHANGED
|
@@ -63,7 +63,7 @@ def chat_with_model(message, history):
|
|
| 63 |
if pipe is None:
|
| 64 |
return "", history, "⚠️ Model pipeline not loaded."
|
| 65 |
|
| 66 |
-
context = "The following is a conversation between a user and an AI assistant trained on
|
| 67 |
for user, bot in history:
|
| 68 |
context += f"User: {user}\nAssistant: {bot}\n"
|
| 69 |
context += f"User: {message}\nAssistant:"
|
|
|
|
| 63 |
if pipe is None:
|
| 64 |
return "", history, "⚠️ Model pipeline not loaded."
|
| 65 |
|
| 66 |
+
context = "The following is a conversation between a user and an AI assistant trained on GIT souce code.\n"
|
| 67 |
for user, bot in history:
|
| 68 |
context += f"User: {user}\nAssistant: {bot}\n"
|
| 69 |
context += f"User: {message}\nAssistant:"
|