Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
title = "Finbert-tone"
|
3 |
+
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."
|
4 |
+
|
5 |
+
article = "<p style='text-align: center'><a href='https://huggingface.co/yiyanghkust/finbert-tone' target='_blank'>Huggingface Model</a></p>"
|
6 |
+
|
7 |
+
examples = [
|
8 |
+
["growth is strong and we have plenty of liquidity"]
|
9 |
+
]
|
10 |
+
gr.Interface.load("huggingface/yiyanghkust/finbert-tone",title=title,description=description,article=article, examples=examples,enable_queue=True).launch()
|