kleinay commited on
Commit
374cbe8
1 Parent(s): 285069e

Update app.py to use qasrl_pipeline

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import gradio as gr
2
-
3
  model = "kleinay/qanom-seq2seq-model-baseline"
 
 
4
  description = f"""This is a demo of the '{model}' model, which fine-tuned a Seq2Seq pretrained model on the QANom task"""
5
  title="QANom Parser Demo"
6
- iface = gr.Interface.load(model, title=title, description=description)
7
  iface.launch()
 
1
  import gradio as gr
2
+ from qasrl_model_pipeline import QASRL_Pipeline
3
  model = "kleinay/qanom-seq2seq-model-baseline"
4
+ pipeline = QASRL_Pipeline(model)
5
+
6
  description = f"""This is a demo of the '{model}' model, which fine-tuned a Seq2Seq pretrained model on the QANom task"""
7
  title="QANom Parser Demo"
8
+ iface = gr.Interface.load(fn=pipeline, title=title, description=description)
9
  iface.launch()