File size: 782 Bytes
5a861a6
4f4fc8f
6ec8ad8
 
 
 
5a861a6
4f4fc8f
5a861a6
4f4fc8f
1
2
3
4
5
6
7
8
9
10
import gradio as gr
title = "Finbert-tone"
description = "Gradio Demo for Finbert-tone, finbert-tone model is the FinBERT model fine-tuned on 10,000 manually annotated (positive, negative, neutral) sentences from analyst reports. This model achieves superior performance on financial tone analysis task. to use it, simply add your text, or click one of the examples to load them. Read more at the links below."

article = "<p style='text-align: center'><a href='https://huggingface.co/yiyanghkust/finbert-tone' target='_blank'>Huggingface Model</a></p>"

examples = [
    ["growth is strong and we have plenty of liquidity"]
]
gr.Interface.load("huggingface/yiyanghkust/finbert-tone",title=title,description=description,article=article, examples=examples,enable_queue=True).launch()