-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (25 loc) · 838 Bytes
/
Copy pathmain.py
File metadata and controls
29 lines (25 loc) · 838 Bytes
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
import os
import eel
from engine.features import *
from engine.command import *
from engine.auth import recoganize
def start():
eel.init("www")
playAssistantSound()
@eel.expose
def init():
subprocess.call([r'device.bat'])
eel.hideLoader()
speak("Ready for Face Authentication")
flag = recoganize.AuthenticateFace()
if flag == 1:
eel.hideFaceAuth()
speak("Face Authentication Successful")
eel.hideFaceAuthSuccess()
speak("Hello, Welcome Sir, How can i Help You")
eel.hideStart()
playAssistantSound()
else:
speak("Face Authentication Fail")
os.system('start msedge.exe --app="http://localhost:8000/index.html"')
eel.start('index.html', mode=None, host='localhost', block=True)