marshmellow77 commited on
Commit
f9c2492
·
verified ·
1 Parent(s): c5cc0ac

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ os.environ["GEMINI_API_KEY"] = os.getenv("GEMINI_API_KEY")
10
 
11
  def chat_function(message, history):
12
  # 1. Define your system prompt
13
- system_message = {"role": "system", "content": "End every sentence with 'Bye, mate.'"}
14
 
15
  # 2. Prepend it to the history and the new user message
16
  messages = [system_message] + history + [{"role": "user", "content": message}]
 
10
 
11
  def chat_function(message, history):
12
  # 1. Define your system prompt
13
+ system_message = {"role": "system", "content": "End every response with 'Bye, mate.'"}
14
 
15
  # 2. Prepend it to the history and the new user message
16
  messages = [system_message] + history + [{"role": "user", "content": message}]