-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
38 lines (26 loc) · 1.05 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from PyQt6.QtWidgets import QApplication
from modules.main_window import MainWindow
import sys
LLM = False
FACE_DETECTION = False
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
if FACE_DETECTION:
from modules.face_detection import FaceDetection
facedetection = FaceDetection()
window.signal_start_detection.connect(facedetection.start_detection)
window.signal_stop_detection.connect(facedetection.stop_detection)
facedetection.sender_pose.connect(window.face.face_detectio_target)
if LLM:
from modules.sst import SpeechToText
from modules.llm import Llama
stt_ = SpeechToText()
llm_ = Llama()
window.signal_start_listening.connect(stt_.voice_reckoning_thread)
window.signal_ajust_noise.connect(stt_.ajust_noise)
stt_.listening_signal.connect(window.listening)
stt_.text_signal.connect(llm_.llama_thread)
llm_.response_signal.connect(window.speech_detected)
window.show()
sys.exit(app.exec())