Spaces:
Runtime error
Runtime error
File size: 399 Bytes
68be317 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
from pyterrier_doc2query import Doc2Query
doc2query = Doc2Query()
def predict(input_df):
return input_df
gr.Interface(
predict,
inputs=gr.Dataframe(
headers=["docno", "text"],
datatype=["str", "str"],
row_count=5,
col_count=(2, "fixed"),
),
outputs="dataframe",
title="pyterrier_doc2query",
).launch()
|