Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,7 @@ with gr.Blocks() as financial_sentiment_interface:
|
|
66 |
positive_plot = gr.Plot(label="Positive Sentiment")
|
67 |
neutral_plot = gr.Plot(label="Neutral Sentiment")
|
68 |
negative_plot = gr.Plot(label="Negative Sentiment")
|
|
|
69 |
|
70 |
submit_btn.click(query, inputs=financial_content, outputs=[sentiment,positive_plot,neutral_plot,negative_plot], api_name="sentiment-analysis")
|
71 |
|
|
|
66 |
positive_plot = gr.Plot(label="Positive Sentiment")
|
67 |
neutral_plot = gr.Plot(label="Neutral Sentiment")
|
68 |
negative_plot = gr.Plot(label="Negative Sentiment")
|
69 |
+
gr.Markdown("[Note: Please note the inference api has a cold start, it may throw error when we use it for the first time. Please wait for some time for the model to load.]")
|
70 |
|
71 |
submit_btn.click(query, inputs=financial_content, outputs=[sentiment,positive_plot,neutral_plot,negative_plot], api_name="sentiment-analysis")
|
72 |
|