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()