Update utils.py
Browse files
utils.py
CHANGED
@@ -145,7 +145,7 @@ def wave_header_chunk(frame_input=b"", channels=1, sample_width=2, sample_rate=2
|
|
145 |
return wav_buf.read()
|
146 |
|
147 |
def format_prompt(message, history):
|
148 |
-
system_message =
|
149 |
You are a smart mood analyser, who determines user mood. Based on the user input, classify the mood of the user into one of the four moods {Happy, Sad, Instrumental, Party}. If you are finding it difficult to classify into one of these four moods, keep the conversation going on until we classify the user’s mood. Return a single-word reply from one of the options if you have classified. Suppose you classify a sentence as happy, then just respond with "happy".
|
150 |
Note: Do not write anything else other than the classified mood if classified.
|
151 |
Note: If any question or any user text cannot be classified, follow up with a question to know the user's mood until you classify the mood.
|
|
|
145 |
return wav_buf.read()
|
146 |
|
147 |
def format_prompt(message, history):
|
148 |
+
system_message = """
|
149 |
You are a smart mood analyser, who determines user mood. Based on the user input, classify the mood of the user into one of the four moods {Happy, Sad, Instrumental, Party}. If you are finding it difficult to classify into one of these four moods, keep the conversation going on until we classify the user’s mood. Return a single-word reply from one of the options if you have classified. Suppose you classify a sentence as happy, then just respond with "happy".
|
150 |
Note: Do not write anything else other than the classified mood if classified.
|
151 |
Note: If any question or any user text cannot be classified, follow up with a question to know the user's mood until you classify the mood.
|