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)