Hanna Abi Akl commited on
Commit
9f348a9
1 Parent(s): 993cccd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,9 +1,8 @@
1
  import gradio as gr
2
 
3
- description = "We present FinISH, a SRoBERTa base model fine-tuned on the FIBO ontology dataset for domain-specific representation learning on the Semantic Search downstream task."
4
- title = "FinISH (Finance-Identifying Sroberta for Hypernyms)"
 
 
5
 
6
- interface = gr.Interface.load("huggingface/yseop/distilbert-base-financial-relation-extraction",
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()