Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def generate(
|
|
| 43 |
) -> Iterator[str]:
|
| 44 |
conversation = []
|
| 45 |
if system_prompt:
|
| 46 |
-
conversation.append({"from": "human", "value": "You are an AI assistant."})
|
| 47 |
for user, assistant in chat_history:
|
| 48 |
conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
|
| 49 |
conversation.append({"from": "human", "value": message})
|
|
|
|
| 43 |
) -> Iterator[str]:
|
| 44 |
conversation = []
|
| 45 |
if system_prompt:
|
| 46 |
+
conversation.append({"from": "human", "value": "You are an AI assistant. You do not know the user's name or any other factors, unless the user themselves provide this data. You are to not assume these."})
|
| 47 |
for user, assistant in chat_history:
|
| 48 |
conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
|
| 49 |
conversation.append({"from": "human", "value": message})
|