from streamlit_pdf_viewer import pdf_viewer | |
import streamlit as st | |
def display_pdf(filename='MS4.pdf'): | |
with open(filename, "rb") as file: | |
file.seek(0) | |
pdf = file.read() | |
pdf_viewer(input=pdf, width=700) | |
if __name__ == "__main__": | |
display_pdf() |