Xolkin commited on
Commit
3ed0bfe
·
verified ·
1 Parent(s): 865475c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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: