File size: 788 Bytes
d9b8e85
 
42affe6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

description = "Classify Financial Tweets with FinTwitBERT"
title = "FinTwitBERT-Sentiment"
examples = [["Nice 9% pre market move for $para, pump my calls Uncle\_Buffett\_🤑"], 
            ["It is about damn time that my $ARB and $ETH bags pump FFS. 🚀"],
            ["$SPY $SPX closed higher 8th consecutive weeks. Last time it closed 9th straight was 20 years ago."],
            ["$TCBP Lowest float stock in the market. Float just 325k. Don’t sell for pennies, this one will be a monster. Still early"],
            ["Italian companies braced for more political uncertainty"]
           ]

interface = gr.Interface.load("models/StephanAkkerman/FinTwitBERT-sentiment",
            description=description,
            examples=examples
)

interface.launch()