import streamlit as st | |
st.set_page_config(page_title="Earnings Sentiment Analysis", page_icon="π") | |
st.sidebar.header("Sentiment Analysis") | |
st.markdown("## Earnings Sentiment Analysis with FinBert-Tone") | |
results, title = inference(url) | |
st.subheader(title) | |
earnings_passages = results['text'] | |
with open('earnings.txt','w') as f: | |
f.write(earnings_passages) | |