Spaces:
Runtime error
Runtime error
Update app.py to use qasrl_pipeline
Browse files
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(
|
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()
|