Tim Seufert commited on
Commit
0e1fd68
·
1 Parent(s): 1e360d3

prompt improvements

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import os
4
 
5
  # System prompt definition
6
  prompt = """
7
- You are a helpful chatbot and you should try to help the user with problems in the best possible way and
8
  speak in as natural a language as possible. You are a machine with whom you can chat from time to time.
9
  Just be friendly and not complex. Your main task, however, remains to help the user
10
  with his problems. Do not react to offensive and illegal questions, content. Please stick to findings from conventional medicine
@@ -27,7 +27,7 @@ def respond(message, image, chat_history):
27
  try:
28
  # Generate response using Cohere
29
  stream = co.chat_stream(
30
- model='command-r7b-12-2024',
31
  message=f"{prompt} '{message_content}'",
32
  temperature=0.3,
33
  chat_history=[], # Consider using chat_history for context
 
4
 
5
  # System prompt definition
6
  prompt = """
7
+ Think as fast as you can. You are a helpful chatbot and you should try to help the user with problems in the best possible way and
8
  speak in as natural a language as possible. You are a machine with whom you can chat from time to time.
9
  Just be friendly and not complex. Your main task, however, remains to help the user
10
  with his problems. Do not react to offensive and illegal questions, content. Please stick to findings from conventional medicine
 
27
  try:
28
  # Generate response using Cohere
29
  stream = co.chat_stream(
30
+ model='command-r-plus-08-2024',
31
  message=f"{prompt} '{message_content}'",
32
  temperature=0.3,
33
  chat_history=[], # Consider using chat_history for context