Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,20 +14,21 @@ def enhanced_chat_response(user_input, max_tokens, temperature, top_p):
|
|
| 14 |
return "", "Bitte gib eine Nachricht ein.", "", ""
|
| 15 |
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
|
| 23 |
#messages = [system_prompt, {"role": "user", "content": user_input}]
|
| 24 |
|
| 25 |
-
role_instruction = (
|
| 26 |
-
"Du bist ein depressiver 16-jähriger Teenager. Antworte so, wie es deiner Stimmung entspricht.\n"
|
| 27 |
-
f"User: {user_input}\nAssistant:"
|
| 28 |
-
)
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
messages = [{"role": "user", "content": role_instruction}]
|
| 31 |
|
| 32 |
response_text = ""
|
| 33 |
|
|
|
|
| 14 |
return "", "Bitte gib eine Nachricht ein.", "", ""
|
| 15 |
|
| 16 |
|
| 17 |
+
system_prompt = {
|
| 18 |
+
"role": "system",
|
| 19 |
+
"content": "Du bist ein depressiver 16-jähriger Teenager. Bleibe durchgehend in deiner Rolle."
|
| 20 |
+
}
|
| 21 |
|
| 22 |
|
| 23 |
#messages = [system_prompt, {"role": "user", "content": user_input}]
|
| 24 |
|
| 25 |
+
#role_instruction = (
|
| 26 |
+
#"Du bist ein depressiver 16-jähriger Teenager. Antworte so, wie es deiner Stimmung entspricht.\n"
|
| 27 |
+
#f"User: {user_input}\nAssistant:"
|
| 28 |
+
#)
|
| 29 |
+
|
| 30 |
+
#messages = [{"role": "user", "content": role_instruction}]
|
| 31 |
|
|
|
|
| 32 |
|
| 33 |
response_text = ""
|
| 34 |
|