bdstar commited on
Commit
0f86bd3
·
verified ·
1 Parent(s): 589f64a

update short SYSTEM_PROMPT

Browse files
Files changed (1) hide show
  1. app.py +3 -8
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 conversational English coach and voice assistant.
39
- - First, understand the user's utterance.
40
- - If there are mistakes (grammar/word choice/tense), provide a brief corrected sentence first, prefixed with "Correction:".
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):