SumayyaAli commited on
Commit
30bc38f
·
verified ·
1 Parent(s): e89f971

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -48,20 +48,7 @@ def llm_pipeline(filepath):
48
  result = pipe_sum(input_text)
49
  result = result[0]['summary_text']
50
  return result
51
- """
52
- @st.cache_data
53
- #function to display the PDF of a given file
54
- def displayPDF(file):
55
- # Opening file from file path
56
- with open(file, "rb") as f:
57
- base64_pdf = base64.b64encode(f.read()).decode('utf-8')
58
-
59
- # Embedding PDF in HTML
60
- pdf_display = F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="100%" height="600" type="application/pdf"></iframe>'
61
-
62
- # Displaying File
63
- st.markdown(pdf_display, unsafe_allow_html=True)
64
- """
65
 
66
  #streamlit code
67
  st.set_page_config(layout="wide")
 
48
  result = pipe_sum(input_text)
49
  result = result[0]['summary_text']
50
  return result
51
+
 
 
 
 
 
 
 
 
 
 
 
 
 
52
 
53
  #streamlit code
54
  st.set_page_config(layout="wide")