File size: 253 Bytes
7bb8c25
 
f86a008
e6d6652
 
 
 
f86a008
 
e6d6652
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

# Load the model
model = gr.load("ahmedrachid/FinancialBERT-Sentiment-Analysis")

# Create a Gradio interface
iface = gr.Interface(fn=model.predict, live=True)

# Launch the Gradio interface with share=True
iface.launch(share=True)