fix
Browse files
app.py
CHANGED
@@ -65,9 +65,20 @@ if __name__ == '__main__':
|
|
65 |
|
66 |
]
|
67 |
|
68 |
-
inputs = [gradio.inputs.Textbox(label="Input")]
|
69 |
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
-
iface = gradio.Interface(fn=generate, inputs=inputs, outputs=outputs, capture_session=True, examples=examples,
|
73 |
-
title=title, description=description, allow_flagging=False)
|
|
|
65 |
|
66 |
]
|
67 |
|
|
|
68 |
|
69 |
+
app = gr.Interface(
|
70 |
+
|
71 |
+
fn=predict,
|
72 |
+
|
73 |
+
inputs=[gr.inputs.Dropdown(model_name_list, label="Model Name"), 'triples'], outputs=['text'],
|
74 |
+
|
75 |
+
examples = [[MODEL_BUF["name"], text]],
|
76 |
+
|
77 |
+
title="FReE",
|
78 |
+
|
79 |
+
description="Financial relations classifier"
|
80 |
+
|
81 |
+
)
|
82 |
+
|
83 |
+
app.launch(inline=False)
|
84 |
|
|
|
|