finbert-tone / app.py
Ahsen Khaliq
Update app.py
6ec8ad8
raw
history blame contribute delete
No virus
782 Bytes
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()