kleinay's picture
Update app.py to use qasrl_pipeline
374cbe8
raw
history blame
389 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.load(fn=pipeline, title=title, description=description)
iface.launch()