File size: 310 Bytes
5ac1897
 
 
56f3727
5ac1897
 
 
 
 
 
56f3727
 
5ac1897
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from lib.kits.gradio import *

import os
import torch

os.environ['PYOPENGL_PLATFORM'] = 'egl'


if __name__ == '__main__':
    # Start serving.
    device = 'cuda' if torch.cuda.is_available() else 'cpu'
    backend = HSMRBackend(device=device)
    hsmr_service = HSMRService(backend)
    hsmr_service.serve()