-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainOSC.py
31 lines (22 loc) · 994 Bytes
/
mainOSC.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
"""
Main script for launching a LiveLinkFaceServer.
This script imports necessary modules to set up and launch a LiveLinkFaceServer instance.
It fetches configuration settings from a YAML file using the SetUp class from src.config.setup module.
Then, it initializes a LiveLinkFaceServer instance with a specified model name and the fetched arguments.
Finally, it launches the server using the init_server() method.
Usage:
python main.py
- Ensure 'config.yaml' exists in the 'src.config' directory with required settings.
Modules:
- SetUp: Class for setting up configurations from a YAML file.
- LiveLinkFaceServer: Class for handling LiveLinkFace server setup and launch.
"""
from src.config.setup import SetUp
from src.utils.livelinkface import LiveLinkFaceServer
if __name__ == "__main__":
# Fetch args
args = SetUp("config.yaml")
# Setup server client model
server = LiveLinkFaceServer("testGloss", args)
# Launch Server
server.init_server()