Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -617,8 +617,8 @@ def response(audio: tuple[int, np.ndarray], conversation_llm_format: list[dict],
|
|
617 |
|
618 |
conversation_llm_format.append({"role": "user", "content": prompt})
|
619 |
|
620 |
-
added by al on 12 02 24 for removing deadspace
|
621 |
-
Determine if the prompt is a greeting or requires processing
|
622 |
if any(greeting in prompt.lower() for greeting in ["hello", "hi", "hey", "good morning", "good afternoon", "good evening"]):
|
623 |
# Random greeting response for greeting-only prompts
|
624 |
processing_message = random.choice(greeting_responses)
|
|
|
617 |
|
618 |
conversation_llm_format.append({"role": "user", "content": prompt})
|
619 |
|
620 |
+
# added by al on 12 02 24 for removing deadspace
|
621 |
+
# Determine if the prompt is a greeting or requires processing
|
622 |
if any(greeting in prompt.lower() for greeting in ["hello", "hi", "hey", "good morning", "good afternoon", "good evening"]):
|
623 |
# Random greeting response for greeting-only prompts
|
624 |
processing_message = random.choice(greeting_responses)
|