Agrimr commited on
Commit
e6d6652
·
1 Parent(s): f86a008
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
2
 
3
  # Load the model
4
- model = gr.load("models/ahmedrachid/FinancialBERT-Sentiment-Analysis")
 
 
 
5
 
6
  # Launch the Gradio interface with share=True
7
- gr.launch(model, share=True)
 
1
  import gradio as gr
2
 
3
  # Load the model
4
+ model = gr.load("ahmedrachid/FinancialBERT-Sentiment-Analysis")
5
+
6
+ # Create a Gradio interface
7
+ iface = gr.Interface(fn=model.predict, live=True)
8
 
9
  # Launch the Gradio interface with share=True
10
+ iface.launch(share=True)