Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,12 @@ def respond(
|
|
11 |
temperature,
|
12 |
top_p,
|
13 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
messages = [{"role": "system", "content": system_message}]
|
15 |
|
16 |
for val in history:
|
|
|
11 |
temperature,
|
12 |
top_p,
|
13 |
):
|
14 |
+
# Send a default greeting message if the chat history is empty
|
15 |
+
if not history:
|
16 |
+
greeting = "Привет, помощник врача EMS штата Alta."
|
17 |
+
history.append((None, greeting))
|
18 |
+
yield greeting
|
19 |
+
|
20 |
messages = [{"role": "system", "content": system_message}]
|
21 |
|
22 |
for val in history:
|