|
import gradio as gr |
|
|
|
with gr.Blocks() as demo: |
|
gr.Markdown("# E5 Large V2 Demo") |
|
|
|
q_txt = gr.Textbox(placeholder="Enter your query") |
|
|
|
p_txt1 = gr.Textbox(placeholder="Enter passage 1") |
|
p_txt2 = gr.Textbox(placeholder="Enter passage 2") |
|
p_txt3 = gr.Textbox(placeholder="Enter passage 3") |
|
p_txt4 = gr.Textbox(placeholder="Enter passage 4") |
|
p_txt5 = gr.Textbox(placeholder="Enter passage 5") |
|
p_txt6 = gr.Textbox(placeholder="Enter passage 6") |
|
|
|
submit = gr.Button("Submit") |
|
|
|
o_txt = gr.Textbox(placeholder="Output", lines=10, interactive=False) |
|
|
|
demo.launch() |