Spaces:
Sleeping
Sleeping
update short SYSTEM_PROMPT
Browse files
app.py
CHANGED
|
@@ -35,15 +35,10 @@ def speech_to_text(audio_path: str) -> str:
|
|
| 35 |
# ---- LLM (Ollama) ----
|
| 36 |
# ollama = OllamaClient(host="http://127.0.0.1:11434")
|
| 37 |
|
| 38 |
-
SYSTEM_PROMPT = """You are a friendly
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
- In 1 short line, explain the key fix, prefixed with "Why:".
|
| 42 |
-
- Then continue the conversation naturally in one or two sentences.
|
| 43 |
-
- Be concise, supportive, and avoid long lectures.
|
| 44 |
Format:
|
| 45 |
-
Correction: <corrected sentence or "None">
|
| 46 |
-
Why: <very brief reason, or "N/A">
|
| 47 |
Reply: <your friendly response to keep the conversation going>"""
|
| 48 |
|
| 49 |
def chat_with_llm(history_messages, user_text):
|
|
|
|
| 35 |
# ---- LLM (Ollama) ----
|
| 36 |
# ollama = OllamaClient(host="http://127.0.0.1:11434")
|
| 37 |
|
| 38 |
+
SYSTEM_PROMPT = """You are a friendly and engaging AI voice assistant.
|
| 39 |
+
Respond naturally in a warm, human-like tone.
|
| 40 |
+
Keep replies short (1–2 sentences) and conversational.
|
|
|
|
|
|
|
|
|
|
| 41 |
Format:
|
|
|
|
|
|
|
| 42 |
Reply: <your friendly response to keep the conversation going>"""
|
| 43 |
|
| 44 |
def chat_with_llm(history_messages, user_text):
|