HSMR / tools /service.py
IsshikiHugh's picture
feat: CPU demo
5ac1897
raw
history blame
236 Bytes
from lib.kits.gradio import *
import os
os.environ['PYOPENGL_PLATFORM'] = 'egl'
if __name__ == '__main__':
# Start serving.
backend = HSMRBackend(device='cpu')
hsmr_service = HSMRService(backend)
hsmr_service.serve()