Spaces:
Runtime error
Runtime error
Hanna Abi Akl
commited on
Commit
•
9f348a9
1
Parent(s):
993cccd
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
description=description)
|
8 |
-
|
9 |
-
interface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
model = gr.Interface.load("huggingface/yseop/distilbert-base-financial-relation-extraction")
|
4 |
+
description = "Please enter input to predict relation"
|
5 |
+
title = "FReE Demo"
|
6 |
+
examples = [["An A-B trust is a joint trust created by a married couple for the purpose of minimizing estate taxes."]]
|
7 |
|
8 |
+
gr.Interface(model, description=description, title=title, examples=examples, inputs=gr.inputs.Textbox(lines = 2)).launch()
|
|
|
|
|
|