add linter and test ollama in python

This commit is contained in:
2024-04-29 15:31:01 +07:00
parent 3fb31e60ea
commit a7abfe44b4
6 changed files with 984 additions and 294 deletions
+3 -1
View File
@@ -2,11 +2,13 @@ import json
import os
import struct
import time
import pvporcupine
import vosk
import yaml
from fuzzywuzzy import fuzz
from pvrecorder import PvRecorder
import config
from utils import execute_cmd, play
@@ -15,7 +17,7 @@ class Jarvis:
def __init__(self):
self.recorder = None
self.CDIR = os.getcwd()
self.VA_CMD_LIST = yaml.safe_load(open('commands.yaml', 'rt', encoding='utf8'))
self.VA_CMD_LIST = yaml.safe_load(open('commands.yaml', encoding='utf8'))
self.porcupine = pvporcupine.create(
access_key=config.PICOVOICE_TOKEN,
keywords=['jarvis'],