Spaces:
Runtime error
Runtime error
Mathias Lux
commited on
Commit
·
13e1701
1
Parent(s):
edb19db
Tried to set additional message in the interface.
Browse files
app.py
CHANGED
@@ -31,8 +31,13 @@ def respond(
|
|
31 |
temperature,
|
32 |
top_p,
|
33 |
):
|
34 |
-
messages = [{"role": "system", "content": system_message}
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
for val in history:
|
38 |
if val[0]:
|
|
|
31 |
temperature,
|
32 |
top_p,
|
33 |
):
|
34 |
+
messages = [{"role": "system", "content": system_message}]
|
35 |
+
|
36 |
+
# Add initial system message if history is empty
|
37 |
+
if not history:
|
38 |
+
# history.append({"role": "system", "content": "Hello! I'm ready to assist you."})
|
39 |
+
history.append({"role": "assistant", "content":"Welcome to the interview. I want to write a short biography about you and need some input from your side. Can you please start by stating your name and talking about your early childhood?"})
|
40 |
+
|
41 |
|
42 |
for val in history:
|
43 |
if val[0]:
|