Files
whisper-voice-commands/sample_config.py
Part Time Larry 874e75a6a1 initial commit
2023-01-08 13:41:41 -08:00

24 lines
601 B
Python

OPENAI_API_KEY = "yourapikey"
TRANSCRIPT_FILE = "transcriptions/transcript.txt"
SYMBOLS = {
"Apple": "AAPL",
"Microsoft": "MSFT",
"Nvidia": "NVDA"
}
COMMAND_WORD = "whisper"
PROMPT_INSTRUCTIONS = "Return the name of the company and the quantity in the text below. " \
"If the text contains the words 'by', 'buy', or 'bye', return 'buy' for the action. " \
"If the text contain the words 'sell', 'cell', or 'sale', return 'sell' for the action. " \
"Return the result in JSON format:"
PROMPT_OUTPUT_FORMAT = """
{
"action": "",
"company": "",
"quantity":
}
"""