Spaces:
Running
on
T4
Running
on
T4
File size: 843 Bytes
dc6aff9 922fc63 dc6aff9 922fc63 dc6aff9 922fc63 dc6aff9 922fc63 dc6aff9 |
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 31 32 33 34 35 36 37 38 39 40 |
# import gradio as gr
#
#
# def update(name):
# return f"Welcome to Gradio, {name}!"
#
#
# with gr.Blocks() as demo:
# gr.Markdown("Start typing below and then click **Run** to see the output.")
# with gr.Row():
# inp = gr.Textbox(placeholder="What is your name?")
# out = gr.Textbox()
# btn = gr.Button("Run")
# btn.click(fn=update, inputs=inp, outputs=out)
#
# demo.launch()
import sys
root_dir = __file__.rsplit("/", 3)[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
# Build demo
with gr.Blocks() as demo:
build_search_module()
build_score_computation()
if __name__ == '__main__':
# args = get_args()
# Run demo
demo.launch()
|