awinml commited on
Commit
ff5dcc7
1 Parent(s): 0f10e25

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +8 -2
  2. utils.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ from utils import (
45
  text_lookup,
46
  )
47
 
48
- st.title("Abstractive Question Answering")
49
 
50
 
51
  st.write(
@@ -378,13 +378,19 @@ if decoder_model == "GPT-J":
378
 
379
  with col1:
380
  with st.expander("See Retrieved Text"):
 
381
  for context_text in context_list:
382
- st.markdown(f"- {context_text}")
 
 
 
 
383
 
384
  file_text = retrieve_transcript(data, year, quarter, ticker)
385
 
386
  with col1:
387
  with st.expander("See Transcript"):
 
388
  stx.scrollableTextbox(
389
  file_text, height=700, border=False, fontFamily="Helvetica"
390
  )
 
45
  text_lookup,
46
  )
47
 
48
+ st.title("Question Answering on Earnings Call Transcripts")
49
 
50
 
51
  st.write(
 
378
 
379
  with col1:
380
  with st.expander("See Retrieved Text"):
381
+ st.subheader("Retrieved Text:")
382
  for context_text in context_list:
383
+ context_text = f"""{context_text}"""
384
+ st.write(
385
+ f"<ul><li><p>{context_text}</p></li></ul>",
386
+ unsafe_allow_html=True,
387
+ )
388
 
389
  file_text = retrieve_transcript(data, year, quarter, ticker)
390
 
391
  with col1:
392
  with st.expander("See Transcript"):
393
+ st.subheader("Earnings Call Transcript:")
394
  stx.scrollableTextbox(
395
  file_text, height=700, border=False, fontFamily="Helvetica"
396
  )
utils.py CHANGED
@@ -707,4 +707,4 @@ def retrieve_transcript(data, year, quarter, ticker):
707
  "r",
708
  )
709
  file_text = open_file.read()
710
- return file_text
 
707
  "r",
708
  )
709
  file_text = open_file.read()
710
+ return f"""{file_text}"""