Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def respond(message, history, scenario, max_tokens, temperature, top_p):
|
|
| 18 |
Respond to the user's message.
|
| 19 |
"""
|
| 20 |
# Build the dynamic system message with the chosen scenario
|
| 21 |
-
system_message = f"You are acting as a {scenario}."
|
| 22 |
full_prompt = system_message + "\n"
|
| 23 |
print(system_message)
|
| 24 |
# Include the chat history in the prompt
|
|
|
|
| 18 |
Respond to the user's message.
|
| 19 |
"""
|
| 20 |
# Build the dynamic system message with the chosen scenario
|
| 21 |
+
system_message = f"You are acting as a {scenario} role in a scenario. Only answer as {scenario} never as an User."
|
| 22 |
full_prompt = system_message + "\n"
|
| 23 |
print(system_message)
|
| 24 |
# Include the chat history in the prompt
|