nickmuchi commited on
Commit
31defb6
β€’
1 Parent(s): 8402070

Create new file

Browse files
Files changed (1) hide show
  1. 01_🏠_Home.py +55 -0
01_🏠_Home.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import whisper
2
+ import os
3
+ from pytube import YouTube
4
+ import pandas as pd
5
+ import plotly_express as px
6
+ import nltk
7
+ import plotly.graph_objects as go
8
+ from optimum.onnxruntime import ORTModelForSequenceClassification
9
+ from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification
10
+ from sentence_transformers import SentenceTransformer, CrossEncoder, util
11
+ import streamlit as st
12
+ import en_core_web_lg
13
+
14
+ nltk.download('punkt')
15
+
16
+ from nltk import sent_tokenize
17
+
18
+
19
+ st.set_page_config(
20
+ page_title="Home",
21
+ page_icon="πŸ“ž",
22
+ )
23
+
24
+ st.sidebar.header("Home")
25
+ st.markdown("## Earnings Call Analysis Whisperer")
26
+
27
+ st.markdown(
28
+ """
29
+ This app assists finance analysts with transcribing and analysis Earnings Calls by carrying out the following tasks:
30
+ - Transcribing earnings calls using Open AI's [Whisper](https://github.com/openai/whisper).
31
+ - Analysing the sentiment of transcribed text using the quantized version of [FinBert-Tone](https://huggingface.co/nickmuchi/quantized-optimum-finbert-tone).
32
+ - Summarization of the call with [FaceBook-Bart-Large-CNN](https://huggingface.co/facebook/bart-large-cnn) model with entity extraction
33
+ - Semantic search engine with [Sentence-Transformers](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) and reranking results with a Cross-Encoder.
34
+
35
+ **πŸ‘‡ Enter a YouTube Earnings Call URL below and navigate to the sidebar tabs**
36
+
37
+ """
38
+ )
39
+
40
+ if "url" not in st.session_state:
41
+ st.session_state.url = ''
42
+
43
+ url_input = st.text_input(
44
+ label='Enter YouTube URL, e.g "https://www.youtube.com/watch?v=8pmbScvyfeY"', key="url")
45
+
46
+ st.markdown(
47
+ "<h3 style='text-align: center; color: red;'>OR</h3>",
48
+ unsafe_allow_html=True
49
+ )
50
+
51
+ upload_wav = st.file_uploader("Upload a .wav sound file ",key="upload")
52
+
53
+ auth_token = os.environ.get("auth_token")
54
+
55
+ from functions import *