Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ def generate(
|
|
43 |
) -> Iterator[str]:
|
44 |
# Preparing conversation history for processing.
|
45 |
conversation = []
|
46 |
-
# Adding system prompt
|
47 |
-
conversation.append({"from": "human", "value": system_prompt})
|
48 |
# Extending the conversation history with user and assistant interactions.
|
49 |
for user, assistant in chat_history:
|
50 |
conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
|
|
|
43 |
) -> Iterator[str]:
|
44 |
# Preparing conversation history for processing.
|
45 |
conversation = []
|
46 |
+
# Adding system prompt.
|
47 |
+
#conversation.append({"from": "human", "value": system_prompt})
|
48 |
# Extending the conversation history with user and assistant interactions.
|
49 |
for user, assistant in chat_history:
|
50 |
conversation.extend([{"from": "human", "value": user}, {"from": "gpt", "value": assistant}])
|