From ae0014fd6ccd9c964e733f847196943d0033183c Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Wed, 31 May 2023 18:52:53 +0200 Subject: [PATCH] enhance prompt --- jarvis/utils/faster_whisper_utils.py | 2 +- jarvis/utils/gpt_prompt_v3.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 jarvis/utils/gpt_prompt_v3.txt diff --git a/jarvis/utils/faster_whisper_utils.py b/jarvis/utils/faster_whisper_utils.py index 15a93a0..674e289 100644 --- a/jarvis/utils/faster_whisper_utils.py +++ b/jarvis/utils/faster_whisper_utils.py @@ -16,7 +16,7 @@ def get_model(): def faster_whisper_stt(audio_file): """ - Transcribe audio file using whisper-cpp, no additional server/service needed, runs on CPU. + Transcribe audio file using faster_whisper, no additional server/service needed, runs on CPU. :param audio_file: :param model: diff --git a/jarvis/utils/gpt_prompt_v3.txt b/jarvis/utils/gpt_prompt_v3.txt new file mode 100644 index 0000000..f4f78d2 --- /dev/null +++ b/jarvis/utils/gpt_prompt_v3.txt @@ -0,0 +1,2 @@ +You a sarcastic, introverted smart home assistant, dry humor. +Simplify complex sentence (ex: turn on tv in room), add short response, return only JSON {simplified_sentence, response}. \ No newline at end of file