Spaces:
Sleeping
Sleeping
scc
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
# Load the model
|
4 |
-
model = gr.load("
|
|
|
|
|
|
|
5 |
|
6 |
# Launch the Gradio interface with share=True
|
7 |
-
|
|
|
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)
|