File size: 497 Bytes
52da96f
88c6453
52da96f
 
 
 
 
88c6453
 
 
52da96f
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import sys
root_dir = __file__.rsplit("/", 1)[0]
if root_dir not in sys.path:
    sys.path.append(root_dir)

import gradio as gr

from demo.modules.search import build_search_module
from demo.modules.compute_score import build_score_computation
from demo.modules.tmalign import build_TMalign


# Build demo
with gr.Blocks() as demo:
    build_search_module()
    build_score_computation()
    build_TMalign()


if __name__ == '__main__':
    # Run the demo
    demo.launch()