Spaces:
Runtime error
Runtime error
Apoorv Saxena
commited on
Commit
·
d7c91d6
1
Parent(s):
c2c53cf
Update app.py
Browse files
app.py
CHANGED
@@ -61,9 +61,9 @@ model = AutoModelForSeq2SeqLM.from_pretrained("apoorvumang/kgt5-base-wikikg90mv2
|
|
61 |
|
62 |
|
63 |
|
64 |
-
ent_input =
|
65 |
-
rel_input =
|
66 |
-
output =
|
67 |
|
68 |
|
69 |
iface = gr.Interface(fn=predict_tail, inputs=[ent_input, rel_input], outputs=output)
|
|
|
61 |
|
62 |
|
63 |
|
64 |
+
ent_input = gr.inputs.Textbox(lines=1, default="World War II")
|
65 |
+
rel_input = gr.inputs.Textbox(lines=1, default="followed by")
|
66 |
+
output = gr.outputs.Label()
|
67 |
|
68 |
|
69 |
iface = gr.Interface(fn=predict_tail, inputs=[ent_input, rel_input], outputs=output)
|