File size: 578 Bytes
7a6e132
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

title = "DPR"

description = "Gradio Demo for DPR. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."

article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2004.04906' target='_blank'>Dense Passage Retrieval for Open-Domain Question Answering</a></p>"

examples = [
    ["Hello, is my dog cute ?"]
]

gr.Interface.load("huggingface/voidful/dpr-question_encoder-bert-base-multilingual",title=title,description=description,article=article, examples=examples).launch(enable_queue=True)