kleinay's picture
Update app.py
676266b
raw
history blame
381 Bytes
import gradio as gr
from qasrl_model_pipeline import QASRL_Pipeline
model = "kleinay/qanom-seq2seq-model-baseline"
pipeline = QASRL_Pipeline(model)
description = f"""This is a demo of the '{model}' model, which fine-tuned a Seq2Seq pretrained model on the QANom task"""
title="QANom Parser Demo"
iface = gr.Interface(fn=pipeline, inputs=["text"], outputs=["text"])
iface.launch()