AhmedTaha012 commited on
Commit
c2d54eb
·
1 Parent(s): 7302df2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -12,6 +12,7 @@ from sentence_transformers import SentenceTransformer
12
  from sklearn.metrics.pairwise import cosine_similarity
13
  import en_core_web_sm
14
  from annotated_text import annotated_text
 
15
  nlp = en_core_web_sm.load()
16
  nltk.download('punkt')
17
  nltk.download('stopwords')
@@ -251,10 +252,8 @@ st.header("Transcript Analysis", divider='rainbow')
251
  mainTranscript = st.text_area("Enter the transcript:", height=100)
252
  doc = nlp(mainTranscript)
253
  sentences = [sent.text for sent in doc.sents]
254
- quarter = st.text_input('Enter your quarter', '',disabled=st.session_state.disabled,
255
- on_change=disable)
256
- year = st.text_input('Enter your year', '',disabled=st.session_state.disabled,
257
- on_change=disable)
258
  if st.button("Analyze"):
259
  transcript=replace_abbreviations(mainTranscript)
260
  transcript=replace_abbreviations(transcript)
 
12
  from sklearn.metrics.pairwise import cosine_similarity
13
  import en_core_web_sm
14
  from annotated_text import annotated_text
15
+ import datetime
16
  nlp = en_core_web_sm.load()
17
  nltk.download('punkt')
18
  nltk.download('stopwords')
 
252
  mainTranscript = st.text_area("Enter the transcript:", height=100)
253
  doc = nlp(mainTranscript)
254
  sentences = [sent.text for sent in doc.sents]
255
+ quarter= st.selectbox('Select your quarter',('1', '2', '3','4'))
256
+ year = st.selectbox('Select your quarter',tuple([str(x) for x in range(1900,int(datetime.datetime.now().year)+1,1)]))
 
 
257
  if st.button("Analyze"):
258
  transcript=replace_abbreviations(mainTranscript)
259
  transcript=replace_abbreviations(transcript)