Hanna Abi Akl
Update app.py
9f348a9
raw
history blame
431 Bytes
import gradio as gr
model = gr.Interface.load("huggingface/yseop/distilbert-base-financial-relation-extraction")
description = "Please enter input to predict relation"
title = "FReE Demo"
examples = [["An A-B trust is a joint trust created by a married couple for the purpose of minimizing estate taxes."]]
gr.Interface(model, description=description, title=title, examples=examples, inputs=gr.inputs.Textbox(lines = 2)).launch()